help-gengetopt
[Top][All Lists]
Advanced

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

Re: [help-gengetopt] gengetopt --show-help and application --help displa


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] gengetopt --show-help and application --help display description differently
Date: Fri, 07 Mar 2008 08:31:05 +0100
User-agent: Thunderbird 2.0.0.12 (X11/20080227)

Hi

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
address@hidden
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




reply via email to

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