Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Spectre.Console.Cli.Tests/CommandAppTests.Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void Should_Throw_If_Required_Option_Is_Missing()
// Then
result.ShouldBeOfType<CommandRuntimeException>()
.And(ex =>
ex.Message.ShouldBe("Command 'test' is missing required argument 'foo'."));
ex.Message.ShouldBe("Command 'test' is missing required option 'foo'."));
}
}
}
2 changes: 1 addition & 1 deletion src/Spectre.Console.Cli/CommandRuntimeException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal static CommandRuntimeException MissingRequiredOption(CommandTree node,
return new CommandRuntimeException($"Missing required option '{option.GetOptionName()}'.");
}

return new CommandRuntimeException($"Command '{node.Command.Name}' is missing required argument '{option.GetOptionName()}'.");
return new CommandRuntimeException($"Command '{node.Command.Name}' is missing required option '{option.GetOptionName()}'.");
}

internal static CommandRuntimeException NoConverterFound(CommandParameter parameter)
Expand Down