[Top][All Lists]

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

Re: [help-gengetopt] --unamed-opts question

From: Lorenzo Bettini
Subject: Re: [help-gengetopt] --unamed-opts question
Date: Thu, 12 Oct 2006 13:33:26 +0200
User-agent: Thunderbird (X11/20060927)

Eli Cohen wrote:

Hi Eli

I would like to use the --unamed-opts option to specify arguments. I
have to arguments:
<host> <command>
that I want to specify but have the following problems.
I cannot specify this option in the .ggo file since there is a space

where were you trying to specify this in the .ggo file?

in this string so it takes only the <host> part. I can do this when I
put it in the makefile and use single quotes.
I still can't get rid of the square brackets and the elipsis.
I need: <host> <command>
but I get: [<host> command]...

few days ago another user had problems with the usage string options; indeed the way options were printed by --help had some problems.

You may want to try this candidate release

the main changes are:

* strings can spawn more than one line and contain escaped "
* usage string can be specified in the .goo file (instead of being generated automatically).
* automatically created usage strings are wrapped.
* with --long-help the optional options are correctly printed between []
* --show-required, to explicitly print in the help output whether an
     option is mandatory

this issues some of the problems enlightened by Tong

as for unnamed options, for the moment they are left to the programmer (but some possible features might be added to gengetopt to deal with them), because they usually represent a list (with unspecified length) of input files...

however, for the moment, one can specify a customized usage string, in order to obtain the line

Usage: sample1 [OPTIONS]... SOURCE DEST

I look forward to hearing feedback :-)


| Lorenzo Bettini          ICQ# lbetto, 16080134      |
| PhD in Computer Science, DSI, Univ. di Firenze      |
| Florence - Italy        (GNU/Linux User # 158233)   |
|                        |
|  BLOG                  |
| Deep Purple Cover Band  |
|            |
|               |
|        |
|     |

reply via email to

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