|
From: | Lorenzo Bettini |
Subject: | Re: [help-gengetopt] feature request: add new --show-help and --show-version options |
Date: | Wed, 22 Sep 2004 00:08:53 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 |
Hia tentative version implementing --show-help and --show-version can be found temporarily here:
http://rap.dsi.unifi.it/~bettini/gengetopt-2.13rc1.tar.gznotice that, if package and version are not specified in the .ggo file, you have to pass them explicitly to gengetopt with options --set-package and --set-version.
this 2.13.rc1 also contains the implementation of enumerated options (where you specify the possible strings that can be passed to an option).
I look forward to receiving feedback :-) cheers Lorenzo Ben Asselstine wrote:
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 _______________________________________________ Help-gengetopt mailing list address@hidden http://lists.gnu.org/mailman/listinfo/help-gengetopt
-- +-----------------------------------------------------+ | Lorenzo Bettini ICQ# lbetto, 16080134 | | PhD in Computer Science | | Dip. Sistemi e Informatica, Univ. di Firenze | | Florence - Italy (GNU/Linux User # 158233) | | Home Page : http://www.lorenzobettini.it | | http://music.dsi.unifi.it XKlaim language | | http://www.lorenzobettini.it/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 | +-----------------------------------------------------+
[Prev in Thread] | Current Thread | [Next in Thread] |