Bundle Miscellaneous runtime utilities: UUID generation, date string parsing and formatting, command-line parameter handling, network time retrieval, and console spinner animations. Included in lang.obl.
Parser
Utilities for parsing
Operations
CommandParameters # function
Command line parser
function : CommandParameters(args:String[]) ~ Hash<String,String>Parameters
| Name | Type | Description |
|---|---|---|
| args | String | command line arguments |
Return
| Type | Description |
|---|---|
| Hash<String,String> | name/value pairs |
Example
args := ["-out=report.txt", "-verbose"];
params := Parser->CommandParameters(args);
out_file := params->Find("-out");
if(out_file <> Nil) {
out_file->PrintLine();
};