argparse icon indicating copy to clipboard operation
argparse copied to clipboard

Feature-rich command line parser for Lua

Results 12 argparse issues
Sort by recently updated
recently updated
newest added

I can't figure out how to set defaults for multiple args (i.e. `:args()` for `n>1`).

In this generated usage description the positional input file argument comes second to last between the `-e` and `-E` options rather than last as I would expect, although in the...

Is it possible to create dynamic shell completions? e.g. if I type `mycommand --profile `, can I provide a way to get a list of available profiles? If not, we...

enhancement

First of all - thank you for this tool and your awesome work on it. I wonder if there is a possibility to do reverse formatting (parsing) of given table...

Add support for architecture ppc64le. This is part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building and re-releasing. For more info tag...

So I was trying to debug the tests in nixos and I noticed some failing tests because the test could not include argparse. On gitter @hishamhm said `supposedly busted should...

I've heard of people missing out on LuaRocks flags because they do `luarocks install --help` and only see the `install`-specific flags and never think of checking for general flags in...

https://github.com/mpeterv/argparse/issues/28 ```lua local parser = argparse("git", "a git implemented by lua") parser:option("-C", "run as if git was started in given path", get_toplevel(getcwd())) parser:command("init", "Create an empty Git repository or reinitialize...

Hi! This PR fixes errors for several issues, specifically request for mutins (mutually inclusive arguments) [mpeterv/argparse#26](https://github.com/mpeterv/argparse/issues/26), and automatic no-prefix for flags [mpeterv/argparse#16](https://github.com/mpeterv/argparse/issues/16). Also, it fixes issue with choice labels treated...

python has argparse.REMINDER = "..." Can lua have it?