updated README [ci skip]

This commit is contained in:
mpeterv
2014-01-26 19:44:18 +04:00
parent d8116dfc05
commit c26d41228d

View File

@@ -4,8 +4,6 @@
__argparse__ is a feature-rich command line parser for Lua inspired by argparse for Python.
Not everything stated here is implemented.
Features:
* Declarative and classic interfaces.
@@ -33,6 +31,7 @@ Features:
count = "*"
})
```
* Parses:
* Short options(e.g. `-q`);
* Combined short options(e.g. `-zx`);
@@ -43,8 +42,6 @@ Features:
* Supports named arguments consuming several arguments.
* Supports options and flags which can be invoked several times, consuming several arguments.
Example:
```lua
parser:option "-p" "--pair"
:count "*"
@@ -64,11 +61,9 @@ Features:
```
* Supports default values and automatic conversions for arguments.
* Automatically generates error, usage and help(__NYI__) messages.
* Automatically generates error, usage and help messages.
* Supports commands(e.g. in [git](http://git-scm.com/) CLI `add`, `commit`, `push`, etc. are commands). Each command has its own set of options and arguments.
* Automatically generates tips on typos.
Example:
* Automatically generates hints on typos.
```lua
parser:option "-f" "--from"