Class CommandLineParser
A simplified commandline parser that handles arguments which follow the --FLAG
or --KEY=VALUE
format.
Automatically initialized during normal runtime operations, however can be manually triggered for author time
use cases as well.
Inheritance
System.Object
CommandLineParser
Namespace: GDX.Developer
Syntax
public static class CommandLineParser
Remarks
The prefix and divider are configurable via the Config, however the always, the FLAG
and KEY
will be Uppercase.
Fields
| Improve this Doc View SourceArguments
The processed arguments found after parsing the arguments
Declaration
public static StringKeyDictionary<string> Arguments
Field Value
Type | Description |
---|---|
StringKeyDictionary<System.String> |
Flags
The processed flags found in the arguments.
Declaration
public static readonly List<string> Flags
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Methods
| Improve this Doc View SourceProcessArguments(String[], Boolean)
Declaration
public static void ProcessArguments(string[] argumentArray, bool shouldClear = true)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | argumentArray | An array of arguments to process. |
System.Boolean | shouldClear | Should the storage containers be cleared. |