summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-10-13 23:29:21 +0000
committerMiles Bader <miles@gnu.org>1995-10-13 23:29:21 +0000
commita6f6073707457a0a06aee51cd2663dde1ab61d51 (patch)
tree5d4d36f09dd3c9223357c94ae50b59ce83bac782
parent92b3b2cfb6c240ce940093ea656193d90d65d7be (diff)
(ARGP_HELP_STD_ERR): Doesn't print a usage message.
(ARGP_HELP_STD_USAGE): ... whereas this does.
-rw-r--r--libshouldbeinlibc/argp.h9
1 files 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)