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?