Class CommandArgument<T>
Represents one or many positional command line arguments.
Arguments are parsed in the order in which Arguments lists them.
The raw value must be parsable into type T
.
Inherited Members
Namespace: McMaster.Extensions.CommandLineUtils
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public class CommandArgument<T> : CommandArgument, IInternalCommandParamOfT
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceCommandArgument(IValueParser<T>)
Initializes a new instance of CommandArgument<T>
Declaration
public CommandArgument(IValueParser<T> valueParser)
Parameters
Type | Name | Description |
---|---|---|
IValueParser<T> | valueParser | The value parser. |
Properties
| Improve this Doc View SourceParsedValue
The parsed value.
Declaration
public T ParsedValue { get; }
Property Value
Type | Description |
---|---|
T |
ParsedValues
All parsed values;
Declaration
public IReadOnlyList<T> ParsedValues { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<T> |