~ubuntu-branches/ubuntu/quantal/gengetopt/quantal

« back to all changes in this revision

Viewing changes to doc/cmdline1.c

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2011-09-26 10:27:31 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: package-import@ubuntu.com-20110926102731-vh42p0vriqz4kp3h
Tags: 2.22.5-1
* New upstream release:
  - correctly wraps and preprocess the specified usage string
  - handle escaped newline chars in the .ggo file correctly
  - initialize enum variables with a generated null value (makes
    the parser compilable in C++)
  - removed warnings in generated parser when only flags are used
* Fix gbp config file.
* Bump Standards.
* Drop unneeded dependency on dpkg (>= 1.15.4), stable has a newer version.
* Refresh patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
  File autogenerated by gengetopt version 2.22.4
 
2
  File autogenerated by gengetopt version 2.22.5
3
3
  generated with the following command:
4
4
  ../src/gengetopt -i ../../doc/sample1.ggo -Fcmdline1 --long-help -u --show-required 
5
5
 
40
40
  "\nA brief text description before the other options.\n",
41
41
  "  -m, --my-opt=INT        Another integer option, this time the description of \n                            the option should be \"quite\" long to require \n                            wrapping... possibly more than one wrapping :-) \n                            especially if I\n                            require a line break",
42
42
  "  -i, --int-opt=INT       A int option (mandatory)",
 
43
  "",
43
44
  "\nmore involved options:",
44
45
  "  the following options\n  are more complex",
45
 
  "",
46
46
  "      --flag-opt          A flag option  (default=off)",
47
47
  "  -F, --funct-opt         A function option",
48
48
  "  \n  A function option is basically an option with no argument.  It can be used, \n  e.g., to specify a specific behavior for a program.\n\n  Well, this further explanation is quite useless, but it's only to show an \n  example of an option with details, which will be printed only when \n  --detailed-help is given at the command line.",
756
756
            goto failure;
757
757
        
758
758
          break;
759
 
        case 'm':       /* Another integer option, this time the description of the option should be \"quite\" long to require wrapping... possibly more than one wrapping :-) especially if I\nrequire a line break.  */
 
759
        case 'm':       /* Another integer option, this time the description of the option should be \"quite\" long to require wrapping... possibly more than one wrapping :-) especially if I
 
760
        require a line break.  */
760
761
        
761
762
        
762
763
          if (update_arg( (void *)&(args_info->my_opt_arg),