[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Rock that parses command lines?
- From: Peter Aronoff <telemachus@...>
- Date: Fri, 15 Jul 2016 14:56:58 -0400
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.
[1] http://docopt.org/
--
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System