help-gengetopt
[Top][All Lists]
Advanced

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

Re: [help-gengetopt] Output of --help and --version


From: Tim Marston
Subject: Re: [help-gengetopt] Output of --help and --version
Date: Thu, 10 May 2012 21:43:19 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

On Tue, May 08, 2012 at 10:44:48AM +0200, Lorenzo Bettini wrote:
> >3. There is currently no way to *really* hide an option (so that it
> >isn't even listed in --full-help).
> >
> >Two ways to implement such a feature spring to mind: a new command-line
> >argument could be added to gengetopt that prevents it from adding
> >--full-help entirely, or options could be tagged with a new keyword,
> >like "really_hidden" that prevents them being a candidate for inclusion
> >in the --full-help output. In fact, both these things could be added.
> >
> >But is the current design intentional? Would this facility be
> >undesirable on the grounds that it would make the software less
> >transparent to the user?
> >
> 
> gengetopt starts to have many command line arguments, and probably
> many keywords...  I guess it's hard to have a way to make all users
> happy: anyone will want to have a complete control on the generated
> code, but, being C, I think it's hard to achieve it... probably
> another command line option would be preferable?

Wouldn't you want both? I.e., a way to exclude an option from --full-help
*and* a command line option that prevents --full-help from being produced
at all? It would be more flexible that way. Or are you concerned about the
bloat?

> Of course, if you can provide patches (and unit test cases) I'll be
> happy to collaborate

I'll get working on some patches.  :o)

-- 
Tim Marston
ed.am



reply via email to

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