From: Daniel Janus
Subject: command line parsing?
Date: 
Message-ID: <slrnftdf6v.cat.przesunmalpe@students.mimuw.edu.pl>
Hello Lispniks,

Is anybody aware of a good CL library for parsing command-line options?
I'm currently using cl-getopt (http://www.cliki.net/getopt), but it is
a little underdocumented, has problems (like throwing errors in certain
situations), and is missing some features typically encountered in such
libraries for other languages.

What I'm after is something akin to Python's optparse or GNU argp.
In particular, the one feature that I'm yearning for is automatic
help generating in response to -h or --help.

If nobody suggests an already existing alternative, I'll probably
start rolling my own, which means any feature and/or syntax suggestions
are welcome.

Thanks,
-- 
Daniel 'Nathell' Janus, ······@nathell.korpus.pl, http://korpus.pl/~nathell
"Don't treat fictional people as if they were human beings.
It only encourages them."
   -- Aris Katsaris, rec.arts.int-fiction

From: Pascal Bourguignon
Subject: Re: command line parsing?
Date: 
Message-ID: <87hcfdx7e5.fsf@thalassa.informatimago.com>
Daniel Janus <············@nathell.korpus.pl> writes:
> If nobody suggests an already existing alternative, I'll probably
> start rolling my own, which means any feature and/or syntax suggestions
> are welcome.

Yep.  Usual command line parsing is rather crude.  You're programming
in the language in which AI was invented!  Write a NLP CLI parser!

    list all files sorted by last access time with details

    # would be a nicer command than

    ls -laut


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"Do not adjust your mind, there is a fault in reality"
 -- on a wall many years ago in Oxford.
From: GP lisper
Subject: Re: command line parsing?
Date: 
Message-ID: <slrnftec5u.1bo.spambait@phoenix.clouddancer.com>
On Tue, 11 Mar 2008 22:44:50 +0100, <···@informatimago.com> wrote:
> Daniel Janus <············@nathell.korpus.pl> writes:
>> If nobody suggests an already existing alternative, I'll probably
>> start rolling my own, which means any feature and/or syntax suggestions
>> are welcome.
>
> Yep.  Usual command line parsing is rather crude.  You're programming
> in the language in which AI was invented!  Write a NLP CLI parser!
>
>     list all files sorted by last access time with details
>
>     # would be a nicer command than
>
>     ls -laut

maybe on your joints and fingers, but not on mine.


-- 
One of the strokes of genius from McCarthy was making lists
the center of the language - kt

-- 
Posted via a free Usenet account from http://www.teranews.com
From: Pascal J. Bourguignon
Subject: Re: command line parsing?
Date: 
Message-ID: <7cwso5o4vi.fsf@pbourguignon.anevia.com>
GP lisper <········@CloudDancer.com> writes:

> On Tue, 11 Mar 2008 22:44:50 +0100, <···@informatimago.com> wrote:
>> Daniel Janus <············@nathell.korpus.pl> writes:
>>> If nobody suggests an already existing alternative, I'll probably
>>> start rolling my own, which means any feature and/or syntax suggestions
>>> are welcome.
>>
>> Yep.  Usual command line parsing is rather crude.  You're programming
>> in the language in which AI was invented!  Write a NLP CLI parser!
>>
>>     list all files sorted by last access time with details
>>
>>     # would be a nicer command than
>>
>>     ls -laut
>
> maybe on your joints and fingers, but not on mine.

Well, "list all files sorted by last access time with details" is
easier said, and less error prone than "ell ess space dash ell a you
tee".

Shouldn't we be using microphones instead of keyboards by now?

-- 
__Pascal Bourguignon__
From: Mikel Bancroft
Subject: Re: command line parsing?
Date: 
Message-ID: <Ae-dnaidBKgw50ranZ2dnUVZ_v-hnZ2d@speakeasy.net>
Daniel Janus wrote:
> If nobody suggests an already existing alternative, I'll probably
> start rolling my own, which means any feature and/or syntax suggestions
> are welcome.
> 
> Thanks,

Not a general CL solution, but may be useful for feature and/or syntax 
ideas. Allegro CL's with-command-line-arguments

http://www.franz.com/support/documentation/8.1/doc/operators/system/with-command-line-arguments.htm

-Mikel