Go to the source code of this file.
|
local function | shared_args_get (args, key, default) |
| get value of a compound flag
|
|
local function | shared_args_has (args, key) |
| verify if exist a flag
|
|
local function | shared_args_param (args, ignore_keys, position, default) |
| get a ordered param
|
|
◆ shared_args_get()
local function shared_args_get |
( |
args | , |
|
|
key | , |
|
|
default | ) |
get value of a compound flag
- Parameters
-
[in] | args | list of arguments |
[in] | key | single char flag |
- Returns
- string
- Return values
-
value | when found |
default | when not found |
NULL | when found and not set default |
◆ shared_args_has()
local function shared_args_has |
( |
args | , |
|
|
key | ) |
verify if exist a flag
- Parameters
-
[in] | args | list of arguments |
[in] | key | single char flag |
- Returns
- boolean
- Return values
-
true | when found |
false | when not found |
◆ shared_args_param()
local function shared_args_param |
( |
args | , |
|
|
ignore_keys | , |
|
|
position | , |
|
|
default | ) |
get a ordered param
- See also
- take care when using shared_args_get
- Parameters
-
[in] | args | list of arguments |
[in] | ignore_keys | a list of compound flags to ignore |
[in] | position | order of parameter started by 1 |
- Returns
- string
- Return values
-
value | when found |
default | when not found |
NULL | when found and not set default |