You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Obsolete("This method is obsolete and will be removed in a future version. Please use ParseResult.ValueForOption<T>(Option<T>) instead. For details see https://github.com/dotnet/command-line-api/issues/1127")]
87
88
publicobject?ValueForOption(stringalias)=>
88
89
ValueForOption<object?>(alias);
89
90
90
91
publicobject?ValueForOption(Optionoption)=>
91
92
ValueForOption<object?>(option);
92
93
94
+
[Obsolete("This method is obsolete and will be removed in a future version. Please use ParseResult.ValueForArgument<T>(Option<T>) instead. For details see https://github.com/dotnet/command-line-api/issues/1127")]
93
95
publicobject?ValueForArgument(stringalias)=>
94
96
ValueForArgument<object?>(alias);
95
97
@@ -121,6 +123,7 @@ public T ValueForArgument<T>(Argument argument)
121
123
}
122
124
123
125
[return:MaybeNull]
126
+
[Obsolete("This method is obsolete and will be removed in a future version. Please use ParseResult.ValueForArgument<T>(Option<T>) instead. For details see https://github.com/dotnet/command-line-api/issues/1127")]
124
127
publicTValueForArgument<T>(stringname)
125
128
{
126
129
if(string.IsNullOrWhiteSpace(name))
@@ -162,9 +165,11 @@ public T ValueForOption<T>(Option option)
[Obsolete("This method is obsolete and will be removed in a future version. Please use ParseResult.ValueForOption<T>(Option<T>) instead. For details see https://github.com/dotnet/command-line-api/issues/1127")]
165
169
[return:MaybeNull]
166
170
publicTValueForOption<T>(stringalias)
167
171
{
172
+
// FIX: (ValueForOption) remove internal refs
168
173
if(string.IsNullOrWhiteSpace(alias))
169
174
{
170
175
thrownewArgumentException("Value cannot be null or whitespace.",nameof(alias));
0 commit comments