[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Rock that parses command lines?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 15 Jul 2016 21:16:14 +0200
2016-07-15 20:56 GMT+02:00 Peter Aronoff <telemachus@arpinum.org>:
> 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 sounds more or less like the docopt[1] project. Here’s one version of
> that for Lua: https://github.com/docopt/docopt.lua.
Thnaks, that isn't it, but noticing that it requires Penlight toggled my
memory. What I was looking for is the 'optparse' submodule in stdlib.