Wishlist: detailed text

Ronny Lorenz <[email protected]> Mon, 08 Nov 2010 11:26:34 +0100
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
Hi there,

I am using gengetopt for a several wrapper programs to a bioinformatics 
library which implements a bunch of scientific algorithms. Since there 
are lots of possible switches to alter the behavior of the underlying 
algorithms, I was very pleased to see the possibility to give short 
descriptions as well as detailed descriptions for the command line 
options. However, I also included several text-sections within the help 
output for providing examples, literature references and other stuff. 
Since these text sections are printed in any help-context (--help as 
well as --detailed-help) I found the need to suppress the printing of 
certain text sections when standard help is requested and printing all 
text sections when the user requests "--detailed-help". I thought about 
including a new command for the gengetopt config files named 
"detailedtext" or similar...

So I was wondering if there would not be the need for such an option for 
other developers as well?!

I also got the latest version of gengetopt from the git-repository to 
incorporate such a command by myself but unfortunately I got stuck in 
understanding the way things are done in parser.cc (I guess I have to 
include the appropriate changes there).

Is it possible to have this feature in an upcoming release or is there 
any more information for me on how to patch gengetopt to do this kind of 
stuff?

best regards

Ronny