You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
argparse is a feature-rich command line parser for Lua inspired by argparse for Python.
5
+
Argparse is a feature-rich command line parser for Lua inspired by argparse for Python.
6
6
7
-
argparse supports positional arguments, options, flags, optional arguments, subcommands and more. argparse automatically generates usage, help and error messages.
7
+
Argparse supports positional arguments, options, flags, optional arguments, subcommands and more. Argparse automatically generates usage, help and error messages.
Installing argparse using [LuaRocks](http://luarocks.org) is simple:
101
101
102
102
```bash
103
103
$ luarocks install argparse
104
104
```
105
105
106
-
### Without luarocks
106
+
### Without LuaRocks
107
107
108
-
Download `src/argparse.lua` file and put it into the directory for Lua libraries or your working directory.
108
+
Download `src/argparse.lua` file and put it into the directory for Lua libraries or your working directory.
109
109
110
110
## Tutorial
111
111
112
-
The tutorial is available [online](http://mpeterv.github.io/argparse/) and in the `doc` directory. If argparse was installed using luarocks 2.1.2 or later, it can be viewed using `luarocks doc argparse` command.
112
+
The tutorial is available [online](http://argparse.readthedocs.org) and in the `doc` directory. If argparse has been installed using LuaRocks 2.1.2 or later, it can be viewed using `luarocks doc argparse` command.
113
113
114
114
## Testing
115
115
116
-
argparse comes with a testing suite located in `spec` directory. [busted](http://olivinelabs.com/busted/) is required for testing, it can be installed using luarocks. Run the tests using `busted spec` command from the argparse folder.
116
+
argparse comes with a testing suite located in `spec` directory. [busted](http://olivinelabs.com/busted/) is required for testing, it can be installed using LuaRocks. Run the tests using `busted spec` command from the argparse folder.
117
117
118
118
## License
119
119
120
-
argparse is licensed under the same terms as Lua itself(MIT license).
120
+
argparse is licensed under the same terms as Lua itself(MIT license).
detailed="Argparse supports positional arguments, options, flags, optional arguments, subcommands and more. Argparse automatically generates usage, help and error messages.",
0 commit comments