argbash
argbash copied to clipboard
Bash argument parsing code generator
Proposal: It would be nice if one could use regex as values in the last argument to `ARG_TYPE_GROUP_SET`. While at it, another option is to add yet another argument -...
Currently, the `ARG_OPTIONAL_BOOL` does not behave optimally (see #2 ). It seems to be a good idea to have more macros for switch-on, switch-off and both (as the current `ARG_OPTIONAL_BOOL`...
Hey all,, thanks so much for your work on Argbash Matejak, all out tooling is powered by argbash anhd we absolutely love it! We wrote this small wrapper for our...
Currently my `main.sh` has something like: # DEFINE_SCRIPT_DIR([]) # INCLUDE_PARSING_CODE([main.argbash]) # ARGBASH_GO() And `main.argbash` has: # ARG_OPTIONAL_BOOLEAN([foo],[f],[Use foo]) # ARG_POSITIONAL_SINGLE([bar],[File for bars]) However, it means that anyone reading `main.sh` has...
Currently `ARG_OPTIONAL_BOOLEAN` is displayed like so: ``` $ ./foo.sh --help foo! Usage: ./foo.sh [--(no-)no-deps] -n,--no-deps,--no-no-deps: some description ``` With many of those the negating `(no-)` text adds a lot of...
Currently argument variables are initialized like this: ```bash # THE DEFAULTS INITIALIZATION - OPTIONALS _arg_print=off _arg_foo_option="boo" ``` This is problematic when using sub-parsers, as optionals that were already parsed by...
The GNU standard allows abbreviations, so e.g. if a script supports a `--foobar` argument and no other argument beginning by `--foo...`, one can specify `--foo` instead (presumably `--foob` should do...
It would be nice to have support for typo detection/suggestion, so e.g. `script --hepl` would produce a `--hepl is an invalid argument, did you mean --help?` message
A few minor proposals that would smooth out `argbash` integration as described in #1. Didn't want to spam x issues and it's all a bit related. --- #### Problem: I...
If I typo an argument, or provide one that the script doesn't actually understand, say `--verbat` instead of `--verbose`, the unparsed option ends up as a positional argument, instead of...