| www.delorie.com/gnu/docs/glibc/libc_531.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
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.
argp_parse,
which will print the `--version' string followed by a newline and
exit. The exception to this is if the ARGP_NO_EXIT flag is used.
argp_program_bug_address should point to a string that will be
printed at the end of the standard output for the `--help' option,
embedded in a sentence that says `Report bugs to address.'.
arg_parse,
which prints the program version and exits with a status of zero. This
is not the case if the ARGP_NO_HELP flag is used. If the
ARGP_NO_EXIT flag 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 section 25.3.5.3 Argp Parsing State, for an explanation of state.
This variable takes precedence over argp_program_version, and is
useful if a program has version information not easily expressed in a
simple string.
EX_USAGE from `<sysexits.h>'.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |