diff options
author | Miles Bader <miles@gnu.org> | 1997-03-06 04:47:27 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-03-06 04:47:27 +0000 |
commit | f9bf265ac3fcbe6cff3ea10085b0b614a7d15a78 (patch) | |
tree | 44757effc8b01de677c5d20029a52dcc39cabe31 | |
parent | 5bdbdd3f31951870162b3b383ec5ad9ee461eefb (diff) |
(__argp_state_help):
Use ARGP_ERR_EXIT_STATUS when exiting due to an error.
-rw-r--r-- | libshouldbeinlibc/argp-help.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/argp-help.c b/libshouldbeinlibc/argp-help.c index b7568b56..294c0ab9 100644 --- a/libshouldbeinlibc/argp-help.c +++ b/libshouldbeinlibc/argp-help.c @@ -1600,7 +1600,7 @@ __argp_state_help (const struct argp_state *state, FILE *stream, unsigned flags) if (!state || ! (state->flags & ARGP_NO_EXIT)) { if (flags & ARGP_HELP_EXIT_ERR) - exit (1); + exit (argp_err_exit_status); if (flags & ARGP_HELP_EXIT_OK) exit (0); } |