Engine 0.0.4
Game engine in lua
Loading...
Searching...
No Matches
args.lua File Reference

Go to the source code of this file.

Functions

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
 

Function Documentation

◆ shared_args_get()

local function shared_args_get ( args ,
key ,
default  )

get value of a compound flag

Parameters
[in]argslist of arguments
[in]keysingle char flag
Returns
string
Return values
valuewhen found
defaultwhen not found
NULLwhen found and not set default

◆ shared_args_has()

local function shared_args_has ( args ,
key  )

verify if exist a flag

Parameters
[in]argslist of arguments
[in]keysingle char flag
Returns
boolean
Return values
truewhen found
falsewhen 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]argslist of arguments
[in]ignore_keysa list of compound flags to ignore
[in]positionorder of parameter started by 1
Returns
string
Return values
valuewhen found
defaultwhen not found
NULLwhen found and not set default