Re: text before 1st section
Lorenzo Bettini <[email protected]>
| Newsgroups | gmane.comp.gnu.gengetopt.general |
|---|---|
| Message-ID | <[email protected]> |
you're right about this actually I've just added in http://rap.dsi.unifi.it/~bettini/gengetopt-2.19rc.tar.gz the "description" statement that is printed right after the usage string. --------------------------------- as for text, this is associated before or after an option; while for what you intend to do, the right thing is using description: # Name of your program, don't use if you're using automake package "sample1" # Version of your program, don't use if you're using automake version "2.0" purpose "this is just a test program for gengetopt" description "Explain about the program" section "Options" option "str-opt" s "A string option, for a filename" optional string typestr="filename" --------------------------------- I'd like to release this new version in the next days I hope to hear from you soon cheers Lorenzo T wrote: > Hi, > > I want to put some text before 1st section to explain about the program, > but noticed it is generated after the section instead: > > -------------------------------- > # Name of your program, don't use if you're using automake > package "sample1" > # Version of your program, don't use if you're using automake > version "2.0" > > purpose "this is just a test program for gengetopt" > > text "Explain about the program" > section "Options" > > option "str-opt" s "A string option, for a filename" optional string typestr="filename" > -------------------------------- > > will get me: > > -------------------------------- > sample1 2.0 > > this is just a test program for gengetopt > > Usage: sample1 [OPTIONS]... > > --full-help Print help, including hidden options, and exit > > Options: > Explain the program > -s, --str-opt=filename A string option, for a filename > -------------------------------- > > is it doable? > > thanks > -- +-----------------------------------------------------+ | Lorenzo Bettini ICQ# lbetto, 16080134 | | PhD in Computer Science, DSI, Univ. di Firenze | | Florence - Italy (GNU/Linux User # 158233) | | http://www.lorenzobettini.it | | http://tronprog.blogspot.com BLOG | | http://www.purplesucker.com Deep Purple Cover Band | | http://www.gnu.org/software/src-highlite | | http://www.gnu.org/software/gengetopt | | http://www.lorenzobettini.it/software/gengen | | http://www.lorenzobettini.it/software/doublecpp | +-----------------------------------------------------+