summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-03-06 04:47:27 +0000
committerMiles Bader <miles@gnu.org>1997-03-06 04:47:27 +0000
commitf9bf265ac3fcbe6cff3ea10085b0b614a7d15a78 (patch)
tree44757effc8b01de677c5d20029a52dcc39cabe31
parent5bdbdd3f31951870162b3b383ec5ad9ee461eefb (diff)
(__argp_state_help):
Use ARGP_ERR_EXIT_STATUS when exiting due to an error.
-rw-r--r--libshouldbeinlibc/argp-help.c2
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);
}