|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
gengetopt --show-help and application --help display description differentlyThere is a small formatting bug in version 2.22. I am using the gengetopt
option "--show-help" to develop an application's help screen before compiling it. However, after compiling, I find that the formatting when using --help is not quite the same as it was with --show-help. Example: # app.ggo package "app" version "1.00" description "Description of app." option "test" t "A simple option for app" optional /* app.c */ #include "cmdline.h" int main (int argc, char **argv) { struct gengetopt_args_info args_info; cmdline_parser (argc, argv, &args_info); return 0; } Invocation of gengetopt: $ gengetopt --show-help -i app.ggo app 1.00 Usage: app [OPTIONS]... Description of app. -h, --help Print help and exit -V, --version Print version and exit -t, --test A simple option for app Invocation of app: $ app --help app 1.00 Usage: app [OPTIONS]... Description of app. -h, --help Print help and exit -V, --version Print version and exit -t, --test A simple option for app Note the blank line after the description in the --show-help case but not in the --help case. -- Dave _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
|
|
Re: gengetopt --show-help and application --help display description differentlyHi
thanks for the report I'll work on this cheers Lorenzo J. David Bryan wrote: > There is a small formatting bug in version 2.22. I am using the gengetopt > option "--show-help" to develop an application's help screen before > compiling it. However, after compiling, I find that the formatting when > using --help is not quite the same as it was with --show-help. > > Example: > > # app.ggo > package "app" > version "1.00" > description "Description of app." > option "test" t "A simple option for app" optional > > /* app.c */ > #include "cmdline.h" > > int main (int argc, > char **argv) > { > struct gengetopt_args_info args_info; > > cmdline_parser (argc, argv, &args_info); > return 0; > } > > Invocation of gengetopt: > > $ gengetopt --show-help -i app.ggo > app 1.00 > > Usage: app [OPTIONS]... > > Description of app. > > -h, --help Print help and exit > -V, --version Print version and exit > -t, --test A simple option for app > > Invocation of app: > > $ app --help > app 1.00 > > Usage: app [OPTIONS]... > > Description of app. > -h, --help Print help and exit > -V, --version Print version and exit > -t, --test A simple option for app > > Note the blank line after the description in the --show-help case but not > in the --help case. > > -- Dave > > > > _______________________________________________ > Help-gengetopt mailing list > Help-gengetopt@... > http://lists.gnu.org/mailman/listinfo/help-gengetopt -- 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 _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
| Free embeddable forum powered by Nabble | Forum Help |