ug4
|
Functions | |
function util | CheckAndPrintHelp (desc) |
function util | CheckForParam (name) |
function util | CheckOptionsType (name, options, atype) |
function util | CheckOptionsValue (name, value, options) |
function util | ConcatOptions (options) |
function util | GetCommandLine () |
function | GetMinLevenshteinDistanceOfIndex (str, list) |
function | GetMinLevenshteinDistanceOfValue (str, list) |
function util | GetParam (name, default, description, options, atype) |
function util | GetParamBool (name, default, description) |
function util | GetParamFromList (name, default, list) |
function util | GetParamNumber (name, default, description, options) |
function util | GetParamNumberArray (name, default, description) |
function util | GetUniqueFilenameFromCommandLine () |
function util | GetUserParameters (params, descriptors) |
function util | HasParamOption (name, description) |
function util | PrintArguments () |
function util | PrintHelp () |
function util | PrintIgnoredArguments () |
function | StrOrNil (s) |
Variables | |
parameterString | ex = "" |
Executes the specified script. More... | |
parameterString | logtofile = "" |
Output will be written to the specified file. More... | |
parameterBool | noquit |
Runs the interactive shell after specified script;. More... | |
parameterBool | noterm |
Terminal logging will be disabled;. More... | |
parameterNumber | outproc = 0 |
Sets the output-proc to id. More... | |
parameterBool | profile |
Shows profile-output when the application terminates;. More... | |
function util CheckAndPrintHelp | ( | desc | ) |
calls util.PrintHelp() and exits if HasParamOption("-help")
optional | description of the script |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :369-376
function util CheckForParam | ( | name | ) |
util.CheckForParam Checks whether a paramneter was specified in the command line
name | of the parameter to search for in argv |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :316-324
function util CheckOptionsType | ( | name | , |
options | , | ||
atype | |||
) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :76-83
References s.
function util CheckOptionsValue | ( | name | , |
value | , | ||
options | |||
) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :85-97
function util ConcatOptions | ( | options | ) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :63-74
function util GetCommandLine | ( | ) |
returns all arguments from the command line
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :328-334
function GetMinLevenshteinDistanceOfIndex | ( | str | , |
list | |||
) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :36-47
function GetMinLevenshteinDistanceOfValue | ( | str | , |
list | |||
) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :50-61
function util GetParam | ( | name | , |
default | , | ||
description | , | ||
options | , | ||
atype | |||
) |
util.GetParam returns parameter in ugargv after ugargv[i] == name
name | parameter in ugargv to search for |
default | returned value if 'name' is not present (default nil) |
description | description for 'name' (default nil) |
options | a table of options e.g. {"jac", "sgs"} |
atype | type of the parameter, e.g. "number", "string", "boolean". default "string" |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :110-161
function util GetParamBool | ( | name | , |
default | , | ||
description | |||
) |
util.GetParamBool use with CommandLine to get boolean option, like -useAMG true
default | returned value if 'name' is not present (default nil) |
description | description for 'name' (default nil) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :239-251
function util GetParamFromList | ( | name | , |
default | , | ||
list | |||
) |
util.GetParamFromList use with CommandLine to get a value out of a list
name | name of the option, like -smoother |
default | returned value if 'name' is not present (default nil) |
description | description for 'name' (default nil) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :261-282
function util GetParamNumber | ( | name | , |
default | , | ||
description | , | ||
options | |||
) |
util.GetParamNumber use with CommandLine to get a number, like -numRefs 4 if parameter is not specified, returns default
name | parameter in ugargv to search for |
default | returned value if 'name' is not present (default nil) |
description | description for 'name' (default nil) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :171-197
function util GetParamNumberArray | ( | name | , |
default | , | ||
description | |||
) |
util.GetParamNumber use with CommandLine to get an array of numbers, like -proc "1;4;9" if parameter is not specified, returns default
name | parameter in ugargv to search for |
default | returned value if 'name' is not present (default nil) |
description | description for 'name' (default nil) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :206-230
function util GetUniqueFilenameFromCommandLine | ( | ) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :425-436
function util GetUserParameters | ( | params | , |
descriptors | |||
) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :444-460
function util HasParamOption | ( | name | , |
description | |||
) |
util.HasParamOption use with CommandLine to get option, like -useAMG
name | option in argv to search for |
description | description for 'name' (default nil) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :290-310
function util PrintArguments | ( | ) |
lists all the command line arguments which where used or could have been used with util.GetParam, util.GetParamNumber and util.HasParamOption
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :338-346
function util PrintHelp | ( | ) |
prints out the description to each GetParam-parameter so far called
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :354-365
function util PrintIgnoredArguments | ( | ) |
lists all command line arguments which were provided but could not be used.
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :379-422
function StrOrNil | ( | s | ) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / command_line_util.lua :348-351
parameterString ex = "" |
Executes the specified script.
Referenced by ug::vrl::checkException(), Java_edu_gcsc_vrl_ug_UG__1getDefaultClassNameFromGroup(), Java_edu_gcsc_vrl_ug_UG__1getExportedClassPtrByName(), Java_edu_gcsc_vrl_ug_UG__1invokeFunction(), Java_edu_gcsc_vrl_ug_UG__1invokeMethod(), Java_edu_gcsc_vrl_ug_UG__1newInstance(), and ug::UGError::UGError().
parameterString logtofile = "" |
Output will be written to the specified file.
parameterBool noquit |
Runs the interactive shell after specified script;.
parameterBool noterm |
Terminal logging will be disabled;.
parameterNumber outproc = 0 |
Sets the output-proc to id.
Referenced by ug::LogIndexLayoutOnAllProcs().
parameterBool profile |
Shows profile-output when the application terminates;.
Referenced by PrintProfile_TotalTime().