From a6f6073707457a0a06aee51cd2663dde1ab61d51 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 13 Oct 1995 23:29:21 +0000 Subject: (ARGP_HELP_STD_ERR): Doesn't print a usage message. (ARGP_HELP_STD_USAGE): ... whereas this does. --- libshouldbeinlibc/argp.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libshouldbeinlibc/argp.h b/libshouldbeinlibc/argp.h index 4c9ad1da..dfd6303c 100644 --- a/libshouldbeinlibc/argp.h +++ b/libshouldbeinlibc/argp.h @@ -214,9 +214,14 @@ error_t argp_parse (struct argp *argp, int argc, char **argv, unsigned flags, flags at once. */ #define ARGP_HELP_EXIT (ARGP_HELP_EXIT_ERR | ARGP_HELP_EXIT_OK) -/* The standard thing to do after a program command line parsing error. */ +/* The standard thing to do after a program command line parsing error, if an + error messages has already been printed. */ #define ARGP_HELP_STD_ERR \ - (ARGP_HELP_USAGE | ARGP_HELP_SEE | ARGP_HELP_EXIT_ERR) + (ARGP_HELP_SEE | ARGP_HELP_EXIT_ERR) +/* The standard thing to do after a program command line parsing error, if no + more specific error message has been printed. */ +#define ARGP_HELP_STD_USAGE \ + (ARGP_HELP_SHORT_USAGE | ARGP_HELP_SEE | ARGP_HELP_EXIT_ERR) /* The standard thing to do in response to a --help option. */ #define ARGP_HELP_STD_HELP \ (ARGP_HELP_SHORT_USAGE | ARGP_HELP_LONG | ARGP_HELP_EXIT_OK) -- cgit v1.2.3