Search Results for

    Show / Hide Table of Contents

    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 Source

    Arguments

    The processed arguments found after parsing the arguments

    Declaration
    public static StringKeyDictionary<string> Arguments
    Field Value
    Type Description
    StringKeyDictionary<System.String>
    | Improve this Doc View Source

    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 Source

    ProcessArguments(String[], Boolean)

    Process an array of arguments into Arguments and Flags.

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.