Skip to content

Commit 5ca753b

Browse files
adamralphjonsequitur
authored andcommitted
fix grammar in obsolete messages
1 parent 9d9132e commit 5ca753b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/System.CommandLine/Parsing/ParseResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public T GetValueForArgument<T>(Argument argument)
227227
/// <inheritdoc cref="GetValueForArgument"/>
228228
[return: MaybeNull]
229229
[Obsolete(
230-
"This method got removed. Please use ParseResult.GetValueForArgument<T>(Option<T>) instead. For details see https://github.com/dotnet/command-line-api/issues/1127", error: true)]
230+
"This method was removed. Please use ParseResult.GetValueForArgument<T>(Option<T>) instead. For details see https://github.com/dotnet/command-line-api/issues/1127", error: true)]
231231
public T ValueForArgument<T>(string name)
232232
{
233233
if (string.IsNullOrWhiteSpace(name))
@@ -275,7 +275,7 @@ public T GetValueForOption<T>(Option option)
275275

276276
/// <inheritdoc cref="GetValueForOption"/>
277277
[Obsolete(
278-
"This method got removed. Please use ParseResult.GetValueForOption<T>(Option<T>) instead. For details see https://github.com/dotnet/command-line-api/issues/1127", error: true)]
278+
"This method was removed. Please use ParseResult.GetValueForOption<T>(Option<T>) instead. For details see https://github.com/dotnet/command-line-api/issues/1127", error: true)]
279279
[return: MaybeNull]
280280
public T ValueForOption<T>(string alias)
281281
{

src/System.CommandLine/Parsing/ParseResultExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public static bool HasOption(
188188
}
189189

190190
/// <inheritdoc cref="HasOption(System.CommandLine.Parsing.ParseResult,System.CommandLine.Option)"/>
191-
[Obsolete("This method got removed. Please use ParseResultExtensions.HasOption(ParseResult, Option) instead. For details see https://github.com/dotnet/command-line-api/issues/1127", error: true)]
191+
[Obsolete("This method was removed. Please use ParseResultExtensions.HasOption(ParseResult, Option) instead. For details see https://github.com/dotnet/command-line-api/issues/1127", error: true)]
192192
public static bool HasOption(
193193
this ParseResult parseResult,
194194
string alias)

0 commit comments

Comments
 (0)