Skip to content

Commit 8ad8818

Browse files
authored
Add HelpName for --project and --launch-profile arguments of RunCommand (#49418)
1 parent 8ffe243 commit 8ad8818

16 files changed

+143
-5
lines changed

src/Cli/dotnet/Commands/CliCommandStrings.resx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,9 @@ dotnet.config is a name don't translate.</comment>
649649
<data name="CommandOptionLaunchProfileDescription" xml:space="preserve">
650650
<value>The name of the launch profile (if any) to use when launching the application.</value>
651651
</data>
652+
<data name="CommandOptionLaunchProfileHelpName" xml:space="preserve">
653+
<value>LAUNCH_PROFILE</value>
654+
</data>
652655
<data name="CommandOptionNoBuildDescription" xml:space="preserve">
653656
<value>Do not build the project before running. Implies --no-restore.</value>
654657
<comment>{Locked="--no-restore"}</comment>
@@ -665,6 +668,9 @@ dotnet.config is a name don't translate.</comment>
665668
<data name="CommandOptionProjectDescription" xml:space="preserve">
666669
<value>The path to the project file to run (defaults to the current directory if there is only one project).</value>
667670
</data>
671+
<data name="CommandOptionProjectHelpName" xml:space="preserve">
672+
<value>PROJECT_PATH</value>
673+
</data>
668674
<data name="Commands" xml:space="preserve">
669675
<value>SDK commands</value>
670676
</data>

src/Cli/dotnet/Commands/Run/RunCommandParser.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ internal static class RunCommandParser
2020

2121
public static readonly Option<string> ProjectOption = new("--project")
2222
{
23-
Description = CliCommandStrings.CommandOptionProjectDescription
23+
Description = CliCommandStrings.CommandOptionProjectDescription,
24+
HelpName = CliCommandStrings.CommandOptionProjectHelpName
2425
};
2526

2627
public static readonly Option<string[]> PropertyOption = CommonOptions.PropertiesOption;
2728

2829
public static readonly Option<string> LaunchProfileOption = new("--launch-profile", "-lp")
2930
{
30-
Description = CliCommandStrings.CommandOptionLaunchProfileDescription
31+
Description = CliCommandStrings.CommandOptionLaunchProfileDescription,
32+
HelpName = CliCommandStrings.CommandOptionLaunchProfileHelpName
3133
};
3234

3335
public static readonly Option<bool> NoLaunchProfileOption = new("--no-launch-profile")

src/Cli/dotnet/Commands/xlf/CliCommandStrings.cs.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.de.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.es.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.fr.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.it.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.ja.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.ko.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/dotnet/Commands/xlf/CliCommandStrings.pl.xlf

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)