Command Line¶
Include: Use System\Application.pkg
Command Line APIs expose process arguments, the application object handle, workspace handles, and runtime platform checks.
Classes¶
- cCommandLine - Reads command-line arguments captured for the process.
- cApplication - Creates the command-line object and stores application-level handles.
Runtime platform¶
- RuntimePlatformId - Returns the runtime platform constant for the current process.
- RuntimePlatformIsWeb - Checks whether the runtime is WASM or WASI.
- Runtime platform constants - Named integer values returned by RuntimePlatformId.
Example¶
Handle hoCommandLine
Integer iArgs
Get phoCommandLine of ghoApplication to hoCommandLine
Get CountOfArgs of hoCommandLine to iArgs