Update README.md [ci skip]

Ref #13.
This commit is contained in:
Peter Melnichenko
2018-04-12 14:17:45 +03:00
parent 99cdddbc9d
commit 528ba1b02f

View File

@@ -19,9 +19,10 @@ parser:option("-o --output", "Output file.", "a.out")
parser:option("-I --include", "Include locations."):count("*")
local args = parser:parse()
print(args) -- Assuming print is patched to handle tables nicely.
```
`args` contents depending on command line arguments:
```bash
$ lua script.lua foo
```
@@ -46,6 +47,8 @@ $ lua script.lua foo -I/usr/local/include -Isrc -o bar
}
```
Error messages depending on command line arguments:
```bash
$ lua script.lua foo bar
```