Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
fix spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsequitur committed Mar 22, 2017
1 parent 485237a commit 53f9b4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/dotnet/CommandLine/CommandLineApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public int Execute(params string[] args)
throw new CommandParsingException(
command,
"Required command missing",
isRequireSubCommandMissing: true);
isRequiredSubCommandMissing: true);
}

return command.Invoke();
Expand Down
8 changes: 4 additions & 4 deletions src/dotnet/CommandLine/CommandParsingException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Microsoft.DotNet.Cli.CommandLine
{
internal class CommandParsingException : Exception
{
private readonly bool _isRequireSubCommandMissing;
private readonly bool _isRequiredSubCommandMissing;

public CommandParsingException(
string message,
Expand All @@ -21,11 +21,11 @@ public CommandParsingException(
public CommandParsingException(
CommandLineApplication command,
string message,
bool isRequireSubCommandMissing = false)
bool isRequiredSubCommandMissing = false)
: this(message)
{
Command = command;
_isRequireSubCommandMissing = isRequireSubCommandMissing;
_isRequiredSubCommandMissing = isRequiredSubCommandMissing;
}

public CommandLineApplication Command { get; }
Expand All @@ -36,7 +36,7 @@ public override string Message
{
get
{
return _isRequireSubCommandMissing
return _isRequiredSubCommandMissing
? CommonLocalizableStrings.RequiredCommandNotPassed
: base.Message;
}
Expand Down

0 comments on commit 53f9b4f

Please sign in to comment.