A cute little Bash library for blazing fast argument parsing
STATUS: IN DEVELOPMENT!
- Uses only builtins
- Uses no subshells
- Simple API
barg.define_flags \
one \
'--alfa' '-a' '|bool|' 'desc' \
'--bravo' '' 'i' 'desc' \
'' '-charlie' 'i' 'desc' \
END \
subcommand \
END
barg.parse_flags "$@"
Use Basalt, a Bash package manager, to add this project as a dependency
basalt add hyperupcall/bash-args