The Bash Argsparse Library
An high level argument parsing library for bash.
 All Files Functions Variables Groups
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. More...
 
 argsparse_minimum_parameters (unsigned_int)
 Set the minimum number of non-option parameters expected on the command line. More...
 

Variables

Integer __argsparse_maximum_parameters =100000
 Internal use only. More...
 
Integer __argsparse_minimum_parameters =0
 Internal use only. More...
 

Detailed Description

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

Integer __argsparse_maximum_parameters =100000

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.