Command Line Parsing
wiki
A number of modules are available for command-line parsing in Lua:
AlternativeGetOpt
CommandLineModule
getopt module in stdlib
[1]
(
[git version]
)
Metalua's option parser:
[code]
[discussion]
See near line 129 of
[2]
by David Given
[discussion]
LappFramework
- GNU style parsing options, derived from usage text
PenLight
?
has a small, focused GNU-style command line parser
[3]
[docopt]
- similar to
LappFramework
LuaApr
has
[apr.getopt()]
to parse an array of command line arguments given the options defined by a usage text (inspired by
LappFramework
) and
[apr.tokenize_to_argv()]
to parse a command line string into an an array of command line arguments
[pythonic.optparse]
- Lua-based partial reimplementation of Python's optparse
[4]
(
DavidManura
, used by
ModuleCompressDeflateLua
and
LuaPatch
)
[argparse]
- loose port of Python's argparse
RecentChanges
·
preferences
edit
·
history
Last edited October 20, 2016 2:23 pm GMT
(diff)