[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: argp: ARGP_NO_ERRS suppresses help output
From: |
Pádraig Brady |
Subject: |
Re: argp: ARGP_NO_ERRS suppresses help output |
Date: |
Thu, 23 Oct 2014 14:42:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 09/29/2014 03:49 AM, Andrei Borzenkov wrote:
> 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.
While this code is in gnulib it's only copied from glibc,
so I'd direct any questions there.
thanks,
Pádraig.
- Re: argp: ARGP_NO_ERRS suppresses help output,
Pádraig Brady <=