VARIABLE::GETARG 1g 2023-07-06 laplante@plcb.ca GOWEB/VARIABLE


title: “GoWeb VARIABLE::GETARG Function” author: “Pierre Laplante” date: 2025-08-30

version: “1.0.0”

Name

variable::getarg returns the command-line arguments passed to the GoWeb process.

Synopsis

variable::getarg() or simply getarg()

Description

The getarg() function returns the command-line arguments passed to the GoWeb process.
It is useful when inspecting or processing arguments provided at startup.

Examples

Example: Running with goweb --config config.toml

getarg();

Result:

["--", "-a", "-b", "-c", ";", "./tt"]

Author

Pierre Laplante laplante@plcb.ca

See Also

Version