The Bash Argsparse Library
An high level argument parsing library for bash.
Functions | Variables
Non-optional positionnal parameters.

Functions

 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 = 100000
 Internal use only.
Integer __argsparse_minimum_parameters = 0
 Internal use only.

Function Documentation

argsparse_maximum_parameters ( unsigned_int  )

Set the maximum number of non-option parameters expected on the command line.

Parameters:
unsigned_inta positive number.
Return values:
0if there is an unsigned integer is provided and is the single parameter of this function.
1in other cases.
argsparse_minimum_parameters ( unsigned_int  )

Set the minimum number of non-option parameters expected on the command line.

Parameters:
unsigned_inta positive number.
Return values:
0if there is an unsigned integer is provided and is the single parameter of this function.
1in other cases.

Variable Documentation

Internal use only.

The default maximum parameters requirement for command line. "Should be enough for everyone".

Internal use only.

The default minimum parameters requirement for command line.

 All Files Functions Variables