Search Results for

    Show / Hide Table of Contents

    Enum CommandOptionType

    Defines the kinds of inputs CommandOption accepts.

    Namespace: McMaster.Extensions.CommandLineUtils
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    public enum CommandOptionType

    Fields

    Name Description
    MultipleValue

    The option can be specified multiple times.

    Example input: --letter A --letter B --letter C

    NoValue

    The option can only be specified once, and does not have a value.

    Example input: --no-commit

    SingleOrNoValue

    The option can only be specified once, and may or may not have a value.

    To disambiguate this from NoValue, values provided cannot be space-separated from the option name, but must use '=' or ':'

    Example input: --log

    Example input: --log:verbose

    SingleValue

    The option can only be specified once.

    Example input: --letter A

    Example input: --letter=A

    Example input: --letter:A

    • Improve this Doc
    • View Source
    In This Article
    Back to top