|
15 | 15 | public Func<System.CommandLine.Parsing.ArgumentResult,T> DefaultValueFactory { get; set; } |
16 | 16 | public System.Boolean HasDefaultValue { get; } |
17 | 17 | public System.Type ValueType { get; } |
| 18 | + public System.Void SetValueFactory(Func<System.CommandLine.Parsing.ArgumentResult,T> valueFactory, ValueFactoryInvocation invocation = WhenTokensMatched) |
18 | 19 | public struct ArgumentArity : System.ValueType, System.IEquatable<ArgumentArity> |
19 | 20 | public static ArgumentArity ExactlyOne { get; } |
20 | 21 | public static ArgumentArity OneOrMore { get; } |
|
101 | 102 | public Option<T> AcceptLegalFilePathsOnly() |
102 | 103 | public Option<T> AcceptOnlyFromAmong(System.String[] values) |
103 | 104 | public Option<T> AcceptOnlyFromAmong(System.StringComparer comparer, System.String[] values) |
| 105 | + public System.Void SetValueFactory(Func<System.CommandLine.Parsing.ArgumentResult,T> valueFactory, ValueFactoryInvocation invocation = WhenTokensMatched) |
104 | 106 | public static class OptionValidation |
105 | 107 | public static Option<System.IO.FileInfo> AcceptExistingOnly(this Option<System.IO.FileInfo> option) |
106 | 108 | public static Option<System.IO.DirectoryInfo> AcceptExistingOnly(this Option<System.IO.DirectoryInfo> option) |
|
150 | 152 | public System.Collections.Generic.IEnumerable<Symbol> Parents { get; } |
151 | 153 | public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context) |
152 | 154 | public System.String ToString() |
| 155 | + public enum ValueFactoryInvocation : System.Enum, System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable |
| 156 | + WhenTokensMatched=1 |
| 157 | + WhenTokensNotMatched=2 |
| 158 | + Always=3 |
153 | 159 | public class VersionOption : Option |
154 | 160 | .ctor() |
155 | 161 | .ctor(System.String name, System.String[] aliases) |
|
0 commit comments