Table of Contents

Enum CommandOptionType

Namespace
McMaster.Extensions.CommandLineUtils
Assembly
McMaster.Extensions.CommandLineUtils.dll

Defines the kinds of inputs CommandOption accepts.

public enum CommandOptionType

Fields

MultipleValue = 0

The option can be specified multiple times.

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

NoValue = 3

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

Example input: --no-commit

SingleOrNoValue = 2

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 = 1

The option can only be specified once.

Example input: --letter A

Example input: --letter=A

Example input: --letter:A