From f9bf265ac3fcbe6cff3ea10085b0b614a7d15a78 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 6 Mar 1997 04:47:27 +0000 Subject: (__argp_state_help): Use ARGP_ERR_EXIT_STATUS when exiting due to an error. --- libshouldbeinlibc/argp-help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libshouldbeinlibc') 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); } -- cgit v1.2.3