Enum CommandOptionType
- Namespace
- McMaster.Extensions.CommandLineUtils
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Defines the kinds of inputs CommandOption accepts.
public enum CommandOptionType
Fields
MultipleValue = 0The option can be specified multiple times.
Example input:
--letter A --letter B --letter CNoValue = 3The option can only be specified once, and does not have a value.
Example input:
--no-commitSingleOrNoValue = 2The 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:
--logExample input:
--log:verboseSingleValue = 1The option can only be specified once.
Example input:
--letter AExample input:
--letter=AExample input:
--letter:A