|
The Bash Argsparse Library 1.8
An high level argument parsing library for bash.
|
Functions | |
| argsparse_allow_no_argument (string) | |
| Allow empty command lines to run. | |
| argsparse_maximum_parameters (unsigned_int) | |
| Set the maximum number of non-option parameters expected on the command line. | |
| argsparse_minimum_parameters (unsigned_int) | |
| Set the minimum number of non-option parameters expected on the command line. | |
Variables | |
| Integer | __argsparse_maximum_parameters = 1000000 |
| Internal use only. | |
| Integer | __argsparse_minimum_parameters = 0 |
| Internal use only. | |
| argsparse_allow_no_argument | ( | string | ) |
Allow empty command lines to run.
Change argsparse behaviour for empty command lines. Default says "no argument triggers usage".
| string | if (case-insensitive) "yes", "true" or "1", the value is considered as affirmative. Anything else is a negative value. |
| 0 | unless there's more than one parameter (or none). |
| argsparse_maximum_parameters | ( | unsigned_int | ) |
Set the maximum number of non-option parameters expected on the command line.
| unsigned_int | a positive number. |
| 0 | if there is an unsigned integer is provided and is the single parameter of this function. |
| 1 | in other cases. |
| argsparse_minimum_parameters | ( | unsigned_int | ) |
Set the minimum number of non-option parameters expected on the command line.
| unsigned_int | a positive number. |
| 0 | if there is an unsigned integer is provided and is the single parameter of this function. |
| 1 | in other cases. |
| Integer __argsparse_maximum_parameters = 1000000 |
Internal use only.
The default maximum parameters requirement for command line. "Should be enough for everyone".
| Integer __argsparse_minimum_parameters = 0 |
Internal use only.
The default minimum parameters requirement for command line.