[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
argp: ARGP_NO_ERRS suppresses help output
From: |
Andrei Borzenkov |
Subject: |
argp: ARGP_NO_ERRS suppresses help output |
Date: |
Mon, 29 Sep 2014 06:49:36 +0400 |
According to
http://www.gnu.org/software/libc/manual/html_node/Argp-Flags.html#Argp-Flags,
when ARGP_NO_ERRS is set, the effect is "Don’t print error messages for
unknown options to stderr". In reality when ARGP_NO_ERRS is set, all
help output is completely suppressed - --help option is still
recognized and processed, but does not do anything.
Is it intentional? My goal is to avoid errors from getopt about unknown
options and let program to handle them by intercepting argp_parse()
return code; but still using all other features Argp provides, like
help formatting.
TIA
-andrei
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- argp: ARGP_NO_ERRS suppresses help output,
Andrei Borzenkov <=