From 78e499e102492a90dfd115de5dfeb116c918d2e2 Mon Sep 17 00:00:00 2001 From: Paul Broadwith Date: Thu, 14 Sep 2023 17:11:54 +0100 Subject: [PATCH] (maint) Fix typos and punctuation --- .../commands/ChocolateyFeatureCommandSpecs.cs | 2 +- .../infrastructure.app/commands/ChocolateyConfigCommand.cs | 2 +- .../infrastructure.app/commands/ChocolateyFeatureCommand.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chocolatey.tests/infrastructure.app/commands/ChocolateyFeatureCommandSpecs.cs b/src/chocolatey.tests/infrastructure.app/commands/ChocolateyFeatureCommandSpecs.cs index 1833c855fe..de9d2d9731 100644 --- a/src/chocolatey.tests/infrastructure.app/commands/ChocolateyFeatureCommandSpecs.cs +++ b/src/chocolatey.tests/infrastructure.app/commands/ChocolateyFeatureCommandSpecs.cs @@ -143,7 +143,7 @@ public void Should_throw_when_more_than_one_unparsed_arg_is_passed() errored.Should().BeTrue(); error.Should().NotBeNull(); error.Should().BeOfType(); - error.Message.Should().Contain("A single features command must be listed"); + error.Message.Should().Contain("A single feature command must be listed."); } [Fact] diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyConfigCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyConfigCommand.cs index 3bcc4632d2..517807bdc7 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyConfigCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyConfigCommand.cs @@ -77,7 +77,7 @@ public virtual void ParseAdditionalArguments(IList unparsedArguments, Ch ) && unparsedArguments.Count > 1) { - throw new ApplicationException("A single features command must be listed. Please see the help menu for those commands"); + throw new ApplicationException("A single config command must be listed. Please see the help menu for those commands."); } if (string.IsNullOrWhiteSpace(configuration.ConfigCommand.Name) && unparsedArguments.Count >= 2) diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyFeatureCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyFeatureCommand.cs index 40084c69ae..a1c824110e 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyFeatureCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyFeatureCommand.cs @@ -74,7 +74,7 @@ public virtual void ParseAdditionalArguments(IList unparsedArguments, Ch ) && unparsedArguments.Count > 1) { - throw new ApplicationException("A single features command must be listed. Please see the help menu for those commands"); + throw new ApplicationException("A single feature command must be listed. Please see the help menu for those commands."); } if (string.IsNullOrWhiteSpace(configuration.FeatureCommand.Name) && unparsedArguments.Count >= 2)