The Bash Argsparse Library
An high level argument parsing library for bash.
Functions | Variables
Options properties handling.

Functions

 argsparse_has_option_property (option, property)
 Determine if an option has a property.
 argsparse_set_option_property (property, option...)
 Enable a property to a list of options.

Variables

AssociativeArray __argsparse_options_default_values
 Internal use only.
AssociativeArray __argsparse_options_properties
 Internal use only.

Function Documentation

argsparse_has_option_property ( option  ,
property   
)

Determine if an option has a property.

Return True if property has been set for given option, and print the property value, if available.

Parameters:
optionan option name.
propertya property name.
Return values:
0if option has given property.
argsparse_set_option_property ( property  ,
option...   
)

Enable a property to a list of options.

Parameters:
propertya property name.
option...option names.
Returns:
non-zero if property is not supported.

Variable Documentation

Internal use only.

An associative array where options default values are stored as soon as the 'default:' property is set.

 All Files Functions Variables