librelist archives

« back to archive

Extending GETOPT with additional return values

Extending GETOPT with additional return values

From:
Teemu Likonen
Date:
2010-05-15 @ 17:51
Hi

First, let me thank you for this really nice unix-options library for
Common Lisp. It's the best one on this area I have seen so far. Here's
my contribution to make it even better (in my opinion).

I think it would be very useful if GETOPT returned options and other
arguments separately. Currently they are in the same list, separated
only by "--", and it's very likely that user needs to separate them
manually. The attached patch extends GETOPT so that it returns two
additional values: the list of options and the list of other arguments.

Re: [unix.options] Extending GETOPT with additional return values

From:
Andrew Stine
Date:
2010-05-16 @ 00:09
Hi Teemu,

Thanks. It's nice to receive feedback for my (small) efforts and
contributions are always appreciated.

Your change is definitely a good idea, something I overlooked; I'll
apply it as soon as I get a free moment.

Of course, if you any further suggestions or contributions for
unix-options, don't hesitate to bring them up.

Regards,
Andrew



On Sat, May 15, 2010 at 1:51 PM, Teemu Likonen <tlikonen@iki.fi> wrote:
> Hi
>
> First, let me thank you for this really nice unix-options library for
> Common Lisp. It's the best one on this area I have seen so far. Here's
> my contribution to make it even better (in my opinion).
>
> I think it would be very useful if GETOPT returned options and other
> arguments separately. Currently they are in the same list, separated
> only by "--", and it's very likely that user needs to separate them
> manually. The attached patch extends GETOPT so that it returns two
> additional values: the list of options and the list of other arguments.
>
>

Re: [unix.options] Extending GETOPT with additional return values

From:
Andrew Stine
Date:
2010-05-16 @ 00:09
Hi Teemu,

Thanks. It's nice to receive feedback for my (small) efforts and
contributions are always appreciated.

Your change is definitely a good idea, something I overlooked; I'll
apply it as soon as I get a free moment.

Of course, if you any further suggestions or contributions for
unix-options, don't hesitate to bring them up.

Regards,
Andrew



On Sat, May 15, 2010 at 1:51 PM, Teemu Likonen <tlikonen@iki.fi> wrote:
> Hi
>
> First, let me thank you for this really nice unix-options library for
> Common Lisp. It's the best one on this area I have seen so far. Here's
> my contribution to make it even better (in my opinion).
>
> I think it would be very useful if GETOPT returned options and other
> arguments separately. Currently they are in the same list, separated
> only by "--", and it's very likely that user needs to separate them
> manually. The attached patch extends GETOPT so that it returns two
> additional values: the list of options and the list of other arguments.
>
>