Re: convert ggo file to man page

Lorenzo Bettini <[email protected]> Wed, 16 Sep 2009 19:13:20 +0200
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
Andre Noll wrote:
> On 16:26, Lorenzo Bettini wrote:
>> actually gengetopt itself creates its man page using help2man: once you 
>> have your program (that uses the gengetopt generated parser), you can 
>> build the manpage with help2man, e.g.,
>>
>> help2man yourprogram
> 
> True. But this does not work when cross-compiling. Would it be
> difficult to implement something like
> 
> 	gengetopt --print-detailed-help < my.ggo
> 
> which would output the detailed help text directly?
> 

there are already options for this :-)

       --show-help               show the output of --help instead of 
generating
                                   code
       --show-full-help          show the output of --full-help (i.e., 
including
                                   hidden options) instead of generating 
code
       --show-detailed-help      show the output of --detailed-help (i.e.,
                                   including details and hidden options) 
instead
                                   of generating code
       --show-version            show the output of --version instead of
                                   generating code


-- 
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