Node:Argp Global Variables, Next:Argp Parsers, Up:Argp
These variables make it easy for user programs to implement the
--version option and provide a bug-reporting address in the
--help output.  These are implemented in argp by default.
| const char * argp_program_version | Variable | 
| If defined or set by the user program to a non-zero value, then a --versionoption is added when parsing withargp_parse,
which will print the--versionstring followed by a newline and
exit.  The exception to this is if theARGP_NO_EXITflag is used. | 
| const char * argp_program_bug_address | Variable | 
| If defined or set by the user program to a non-zero value, argp_program_bug_addressshould point to a string that will be
printed at the end of the standard output for the--helpoption,
embedded in a sentence that saysReport bugs to address.. | 
| argp_program_version_hook | Variable | 
| If defined or set by the user program to a non-zero value, a --versionoption is added when parsing witharg_parse,
which prints the program version and exits with a status of zero.  This
is not the case if theARGP_NO_HELPflag is used.  If theARGP_NO_EXITflag is set, the exit behavior of the program is
suppressed or modified, as when the argp parser is going to be used by
other programs.It should point to a function with this type of signature:
 void print-version (FILE *stream, struct argp_state *state) See Argp Parsing State, for an explanation of state. This variable takes precedence over  | 
| error_t argp_err_exit_status | Variable | 
| This is the exit status used when argp exits due to a parsing error.  If
not defined or set by the user program, this defaults to: EX_USAGEfrom<sysexits.h>. |