Skip to content

Commit 3897299

Browse files
committed
don't customize a description of a command used in one place, just set the description to desired text
1 parent d95f617 commit 3897299

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/Cli/dotnet/Commands/Workload/Search/WorkloadSearchVersionsCommandParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static Command GetCommand()
3434

3535
private static Command ConstructCommand()
3636
{
37-
var command = new Command("version", CliCommandStrings.PrintSetVersionsDescription);
37+
var command = new Command("version", CliStrings.ShortWorkloadSearchVersionDescription);
3838
command.Arguments.Add(WorkloadVersionArgument);
3939
command.Options.Add(FormatOption);
4040
command.Options.Add(TakeOption);

src/Cli/dotnet/Parser.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ internal static int ExceptionHandler(Exception exception, ParseResult parseResul
254254

255255
return 1;
256256
}
257-
257+
258258
internal class DotnetHelpBuilder : HelpBuilder
259259
{
260260
private DotnetHelpBuilder(int maxWidth = int.MaxValue) : base(maxWidth) { }
@@ -273,16 +273,9 @@ private DotnetHelpBuilder(int maxWidth = int.MaxValue) : base(maxWidth) { }
273273

274274
DotnetHelpBuilder dotnetHelpBuilder = new(windowWidth);
275275

276-
SetHelpCustomizations(dotnetHelpBuilder);
277-
278276
return dotnetHelpBuilder;
279277
});
280278

281-
private static void SetHelpCustomizations(HelpBuilder builder)
282-
{
283-
builder.CustomizeSymbol(WorkloadSearchVersionsCommandParser.GetCommand(), secondColumnText: CliStrings.ShortWorkloadSearchVersionDescription);
284-
}
285-
286279
public static void additionalOption(HelpContext context)
287280
{
288281
List<TwoColumnHelpRow> options = [];

0 commit comments

Comments
 (0)