lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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