The Bash Argsparse Library  1.8
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. 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 = 1000000
 Internal use only. More...
 
Integer __argsparse_minimum_parameters = 0
 Internal use only. More...
 

Detailed Description

Function Documentation

◆ argsparse_maximum_parameters()

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()

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

◆ __argsparse_maximum_parameters

Integer __argsparse_maximum_parameters = 1000000

Internal use only.

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

◆ __argsparse_minimum_parameters

Integer __argsparse_minimum_parameters = 0

Internal use only.

The default minimum parameters requirement for command line.