help-gengetopt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gengetopt] convert ggo file to man page


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] convert ggo file to man page
Date: Wed, 16 Sep 2009 19:13:20 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]