help-gengetopt
[Top][All Lists]
Advanced

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

[help-gengetopt] feature request: add new --show-help and --show-version


From: Ben Asselstine
Subject: [help-gengetopt] feature request: add new --show-help and --show-version options
Date: Thu, 9 Sep 2004 10:43:51 -0400

Hello,

I propose 2 new options:

--show-help
    Show the output of --help instead of generating code
--show-version
    Show the output of --version instead of generating code

A gengetopt user could then modify the .ggo file and view the output
of --show-help to see if things look right.  It allows gengetopt to
have a simpler iterative workflow, ending with the generation of code.

It also could be used to interface with help2man [1].  help2man has
--help-option and --version-option options that make it possible to
generate a man page from gengetopt with --show-help and --show-version
options.  I'm not certain how useful it is to create a man page before
compilation (as gengetopt would become a dependency), but it's
certainly nifty.

example of interfacing help2man with gengetopt with the new options: 
help2man --help-option="--input=bf.ggo --show-help"
--version-option="--input=bf.ggo --show-version" gengetopt > bf.1

1. http:// www.gnu.org/software/help2man/

Ben




reply via email to

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