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

Functions

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

Variables

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

Detailed Description

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

AssociativeArray __argsparse_options_default_values

Internal use only.

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