The Bash Argsparse Library
An high level argument parsing library for bash.
|
Functions | |
argsparse_set_alias (option) | |
"alias" property specific option-setting hook. | |
argsparse_set_cumulative_option () | |
"cumulative" property specific option-setting hook. | |
argsparse_set_cumulativeset_option (option, value) | |
"cumulativeset" property specific option-setting hook. | |
argsparse_set_option (option, value) | |
Default option-setting hook. | |
argsparse_set_option_with_value (option, value) | |
"value" property specific option-setting hook. | |
argsparse_set_option_without_value (option) | |
The option-setting hook for options not accepting values. |
argsparse_set_alias | ( | option | ) |
"alias" property specific option-setting hook.
option | an option name. |
When an option is an alias for other option(s), then set the aliases options.
"cumulative" property specific option-setting hook.
Default action to take for cumulative options. Store value into an array whose name is generated using argsparse_get_cumulative_array_name(, option, value).
option | an option name. |
value | the value put on command line for given option. |
argsparse_set_cumulativeset_option | ( | option | , |
value | |||
) |
"cumulativeset" property specific option-setting hook.
option | an option name. |
value | a new value for the option. |
Default action to take for cumulativeset options. Act exactly like argsparse_set_cumulative_option() except that values are not duplicated in the cumulated values array.
argsparse_set_option | ( | option | , |
value | |||
) |
Default option-setting hook.
option | The option being set. |
value | the value of the option (optional). |
This function will be called by argsparse_parse_options() whenever an option is being and no custom setting hook is define for this option. Depending of the properties of the option a more specific setting hook will be called.
argsparse_set_option_with_value | ( | option | , |
value | |||
) |
"value" property specific option-setting hook.
option | an option name. |
value | the value put on command line for given option. |
argsparse_set_option_without_value | ( | option | ) |
The option-setting hook for options not accepting values.
option | an option name. |
0 |