| Home | | | Quick start | | | Cookbook | | | All symbols | | | Analytical index | | | Namespaces | | | Syntax | | | Statements | | | CX | | | Frequency | | | Functions | | | Examples | | | Examples by command |
Symbols grouped by the SYS namespace.
Symbols in this namespace: 7
| Symbol | Kind | Category | Description |
|---|---|---|---|
SYS.ARG | Function | System functions | Returns one zero-based positional command-line argument, or an empty string when out of range. |
SYS.ARGC | Function | System functions | Returns the number of positional arguments passed after the script name on the command line. |
SYS.CWD | Function | System functions | Returns the current process working directory. |
SYS.GET | Function | System functions | Returns a named parameter passed with --set name=value; optional second argument is the default value. |
SYS.HAS | Function | System functions | TRUE if a named parameter was passed with --set name=value. |
SYS.SCRIPT_DIR | Function | System functions | Absolute directory containing the currently loaded .cvb script. |
SYS.SCRIPT_PATH | Function | System functions | Absolute path of the currently loaded .cvb script. |
SYS.ARG(index)
Returns one zero-based positional command-line argument, or an empty string when out of range.
value = SYS.ARG(index)SYS.ARGC()
Returns the number of positional arguments passed after the script name on the command line.
value = SYS.ARGC()SYS.CWD()
Returns the current process working directory.
value = SYS.CWD()SYS.GET(name[, defaultValue])
Returns a named parameter passed with --set name=value; optional second argument is the default value.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
defaultValue | Optional parameter. If omitted, the command uses its internal default. |
value = SYS.GET(name[, defaultValue])SYS.HAS(name)
TRUE if a named parameter was passed with --set name=value.
value = SYS.HAS(name)SYS.SCRIPT_DIR()
Absolute directory containing the currently loaded .cvb script.
value = SYS.SCRIPT_DIR()SYS.SCRIPT_PATH()
Absolute path of the currently loaded .cvb script.
value = SYS.SCRIPT_PATH()