bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: argp: ARGP_NO_ERRS suppresses help output


From: Andrei Borzenkov
Subject: Re: argp: ARGP_NO_ERRS suppresses help output
Date: Sat, 25 Oct 2014 09:11:15 +0400

В Thu, 23 Oct 2014 14:42:25 +0100
Pádraig Brady <address@hidden> пишет:

> 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.
> 

Adding glibc ...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]