~ubuntu-branches/ubuntu/hardy/gengetopt/hardy

« back to all changes in this revision

Viewing changes to src/skels/handle_help.h_skel

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-01-29 14:55:40 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080129145540-bkah1bl330gpelmh
Tags: 2.22-1ubuntu1
* Merge with Debian; remaining changes:
  - Fix build failures with g++-4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
@IF@ full_help @THEN@
 
1
@IF@ detailed_help @THEN@
 
2
if (strcmp (long_options[option_index].name, "detailed-help") == 0) {
 
3
  @parser_name@_print_detailed_help ();
 
4
@ELSEIF@ full_help @THEN@
2
5
if (strcmp (long_options[option_index].name, "full-help") == 0) {
3
6
  @parser_name@_print_full_help ();
4
7
@ELSE@
 
8
@IF@ short_opt @THEN@
5
9
case 'h':       /* Print help and exit.  */
 
10
@ELSE@
 
11
if (strcmp (long_options[option_index].name, "help") == 0) {
 
12
@ENDIF@
6
13
  @parser_name@_print_help ();
7
14
@ENDIF@
8
15
  @parser_name@_free (&local_args_info);
9
 
  exit (EXIT_SUCCESS);@IF@ full_help @then@
10
 
}
11
 
@ENDIF@
 
 
b'\\ No newline at end of file'
 
16
  exit (EXIT_SUCCESS);@IF@ full_help or (not short_opt) @then@
 
17
}@ENDIF@
 
 
b'\\ No newline at end of file'