guile-user
[Top][All Lists]
Advanced

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

Re: getopt-long


From: Andrew Horton
Subject: Re: getopt-long
Date: Mon, 5 Dec 2011 20:00:01 +0000

That would do the trick. I've also thought that a (help "...") for
each option would also be useful, which could append the string for
each arg to the "--help" option text automatically (somehow).

On 5 December 2011 18:35, Thien-Thi Nguyen <address@hidden> wrote:
> () Andrew Horton <address@hidden>
> () Thu, 01 Dec 2011 11:40:40 +0000
>
>   recognize multiple use of an option when using getopt-long.
>
> Guile 1.4.x extended (ice-9 getopt-long) to handle multiple occurances.
> Here is an excerpt from (info "(guile) getopt-long Reference"):
>
>  `(merge-multiple? BOOL)'
>        If BOOL is `#t' and the `value' property is not `#f', all
>        (one or multiple) occurrances are merged into a list with
>        order retained.  If `#f', each instance of the option results
>        in a separate entry in the resulting alist.
>
> Subsequently, this rat jumped to the non-(not-yet?)-sinking ttn-do
> as module ‘(ttn-do zzz bamboozled)’.  More info online:
>
> http://www.gnuvola.org/software/guile/doc/getopt_002dlong-Reference.html
> http://www.gnuvola.org/software/ttn-do/ttn-do.html.gz#zzz-bamboozled
>
> I think it would be cool if this were to find berth in official Guile.



reply via email to

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