[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Rock that parses command lines?
- From: Jonathan Goble <jcgoble3@...>
- Date: Fri, 15 Jul 2016 14:37:56 -0400
On Fri, Jul 15, 2016 at 2:29 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> Someone posted an announcement for a rock that takes your
> help string and parses your command line. It turns 'args' into
> a keyed table, e.g. {"-d", "s=specify"} --> {d=true, s="specify"}
> and tests whether the option is documented.
>
> This seems to be something that can neatly be done in pure Lua
> but the only rock I could find is 'commandlineui' which seems to be
> heavily system-dependent: e.g. it wants me to install GDBM.
> I don't think that's the one I want.
Here's a thread from April in which multiple options were suggested:
http://lua-users.org/lists/lua-l/2016-04/threads.html#00083
Are you looking for one of those?