On 05/10/2012 10:43 PM, Tim Marston wrote:
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?

I'm concerned about the code 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)


look forward to :)

cheers
        Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net

_______________________________________________
Help-gengetopt mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-gengetopt

Reply via email to