kvz / bash3boilerplate

Templates to write better Bash scripts
http://bash3boilerplate.sh
MIT License
2.13k stars 199 forks source link

Add support for repeatable arguments #118

Closed lukasstockner closed 5 years ago

lukasstockner commented 5 years ago

If the usage of the argument includes the phrase "Can be repeated.", the corresponding arg_* variable will be an array containing one element per instance of the argument.

This can be used both for parameters that expect an argument (e.g. multiple input files) and flags (e.g. repeating -v to increase verbosity).

kvz commented 5 years ago

:pray: :boom: