summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/argp.h
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-02 05:54:47 +0000
committerMiles Bader <miles@gnu.org>1996-05-02 05:54:47 +0000
commit6c860a81814c6daecfd7538df3c7be99d5f44a4b (patch)
treebdd5c30ef044995dd220e85c13c0747bc8241512 /libshouldbeinlibc/argp.h
parenta2dbc963b927c995ea02ba83c197de2a465f6215 (diff)
(argp_program_version, argp_program_version_hook): New decls.
Diffstat (limited to 'libshouldbeinlibc/argp.h')
-rw-r--r--libshouldbeinlibc/argp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libshouldbeinlibc/argp.h b/libshouldbeinlibc/argp.h
index 79bc4b39..938226ac 100644
--- a/libshouldbeinlibc/argp.h
+++ b/libshouldbeinlibc/argp.h
@@ -244,6 +244,18 @@ struct argp_state
error_t argp_parse (const struct argp *argp,
int argc, char **argv, unsigned flags,
int *arg_index, void *input);
+
+/* If defined or set by the user program to a non-zero value, then a default
+ option --version is added (unless the ARGP_NO_HELP flag is used), which
+ will print this this string and exit (unless the ARGP_NO_EXIT flag is
+ used). Overridden by ARGP_PROGRAM_VERSION_HOOK. */
+extern char *argp_program_version;
+
+/* If defined or set by the user program to a non-zero value, then a default
+ option --version is added (unless the ARGP_NO_HELP flag is used), which
+ calls this function and exits (unless the ARGP_NO_EXIT flag is used).
+ This variable takes precedent over ARGP_PROGRAM_VERSION. */
+extern void (*argp_program_version_hook) ();
/* Flags for argp_help. */
#define ARGP_HELP_USAGE 0x01 /* Print a Usage: message. */