Argument Handling
Syntax & Examples
// Check if any arguments were passed on startup
#incd .jargh
bool areThereArguments;
arg.chk{>> areThereArguments};// Store the argument/s in a variable
#incd .jargh
str firstArgument;
arg.store{<< [1] >> firstArgument};
// Usage example
if (firstArgument == "-h" || firstArgument == "--help") : {
// Print available options
};// Store the program's name (executable's)
#incd .jargh
str programName;
arg.store{<< [0] >> programName};Last updated