|
1 | 1 | System.CommandLine
|
2 |
| - public class Argument : Symbol, System.CommandLine.Binding.IValueDescriptor, System.CommandLine.Completions.ICompletionSource |
3 |
| - .ctor() |
4 |
| - .ctor(System.String name = null, System.String description = null) |
| 2 | + public abstract class Argument : Symbol, System.CommandLine.Binding.IValueDescriptor, System.CommandLine.Completions.ICompletionSource |
5 | 3 | public ArgumentArity Arity { get; set; }
|
6 | 4 | public CompletionSourceList Completions { get; }
|
7 | 5 | public System.Boolean HasDefaultValue { get; }
|
8 | 6 | public System.String HelpName { get; set; }
|
9 |
| - public System.Type ValueType { get; set; } |
| 7 | + public System.Type ValueType { get; } |
10 | 8 | public System.Void AddValidator(System.CommandLine.Parsing.ValidateSymbolResult<System.CommandLine.Parsing.ArgumentResult> validate)
|
11 | 9 | public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
|
12 | 10 | public System.Object GetDefaultValue()
|
|
21 | 19 | .ctor(Func<T> getDefaultValue)
|
22 | 20 | .ctor(System.String name, ParseArgument<T> parse, System.Boolean isDefault = False, System.String description = null)
|
23 | 21 | .ctor(ParseArgument<T> parse, System.Boolean isDefault = False)
|
24 |
| - public System.Type ValueType { get; set; } |
| 22 | + public System.Type ValueType { get; } |
25 | 23 | public struct ArgumentArity : System.ValueType, System.IEquatable<ArgumentArity>
|
26 | 24 | public static ArgumentArity ExactlyOne { get; }
|
27 | 25 | public static ArgumentArity OneOrMore { get; }
|
|
181 | 179 | public System.String UnrecognizedCommandOrArgument(System.String arg)
|
182 | 180 | public System.String VersionOptionCannotBeCombinedWithOtherArguments(System.String optionAlias)
|
183 | 181 | public System.String VersionOptionDescription()
|
184 |
| - public class Option : IdentifierSymbol, System.CommandLine.Binding.IValueDescriptor, System.CommandLine.Completions.ICompletionSource |
185 |
| - .ctor(System.String name, System.String description = null, System.Type argumentType = null, System.Func<System.Object> getDefaultValue = null, ArgumentArity arity = null) |
186 |
| - .ctor(System.String[] aliases, System.String description = null, System.Type argumentType = null, System.Func<System.Object> getDefaultValue = null, ArgumentArity arity = null) |
| 182 | + public abstract class Option : IdentifierSymbol, System.CommandLine.Binding.IValueDescriptor, System.CommandLine.Completions.ICompletionSource |
187 | 183 | public System.Boolean AllowMultipleArgumentsPerToken { get; set; }
|
188 | 184 | public System.String ArgumentHelpName { get; set; }
|
189 | 185 | public ArgumentArity Arity { get; set; }
|
|
0 commit comments