Re: Wishlist: detailed text
Lorenzo Bettini <[email protected]> Wed, 17 Nov 2010 11:00:20 +0100
| Newsgroups | gmane.comp.gnu.gengetopt.general |
|---|---|
| Message-ID | <[email protected]> |
On 11/08/2010 11:26 AM, Ronny Lorenz wrote: > 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? > Hi parser.cc is a generated file: you should edit the bison file parser.yy it shouldn't be too hard to implement this feature, I'll try to work on this, but I can't promise I'll finish soon ;) please feel free to ping me by some days. Also, if anyone would like to give it a try and implement it it would be very helpful :) 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