The Bash Argsparse Library 1.8
An high level argument parsing library for bash.
|
Bash completion for scripts using argsparse library. More...
Functions | |
__argsparse_compgen (param...) | |
A compgen wrapper. | |
__argsparse_complete () | |
Completion for the command stored in ${words[0]}. | |
__argsparse_complete_get_long (word, long...) | |
Find the option we want to complete. | |
__argsparse_complete_value (option) | |
Complete the value an option. | |
_argsparse_complete () | |
The argsparse completion function. | |
Bash completion for scripts using argsparse library.
To automatically enable, for bash-completion users, completion for scripts that use the argsparse library.
In your ~/.bashrc, add the following lines to enable completion for all your argsparse-written scripts:
argsparse-completion relies on a few shell settings:
If correctly enabled, the following command below should return this output.