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

Commit 3ec572f

Browse files
committed
Fixing help text for version, info and diagnostics and also removing runtime options that are only available for dotnet exec.
1 parent 68175e5 commit 3ec572f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/dotnet/commands/dotnet-help/HelpUsageText.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ internal static class HelpUsageText
55
{
66
public static readonly string UsageText =
77
$@"{LocalizableStrings.Usage}: dotnet [runtime-options] [path-to-application]
8-
{LocalizableStrings.Usage}: dotnet [command] [arguments] [command-options]
8+
{LocalizableStrings.Usage}: dotnet [sdk-options] [command] [arguments] [command-options]
99
1010
path-to-application:
1111
{LocalizableStrings.PathToApplicationDefinition}
@@ -27,20 +27,20 @@ internal static class HelpUsageText
2727
nuget {LocalizableStrings.NugetDefinition}
2828
msbuild {LocalizableStrings.MsBuildDefinition}
2929
vstest {LocalizableStrings.VsTestDefinition}
30-
-v|--version {LocalizableStrings.SDKVersionCommandDefinition}
31-
-i|--info {LocalizableStrings.SDKInfoCommandDefinition}
32-
-d|--diagnostics {LocalizableStrings.SDKDiagnosticsCommandDefinition}
3330
3431
{LocalizableStrings.CommonOptions}:
3532
-v|--verbosity {CommonLocalizableStrings.VerbosityOptionDescription}
3633
-h|--help {LocalizableStrings.HelpDefinition}
3734
3835
{LocalizableStrings.RunDotnetCommandHelpForMore}
3936
37+
sdk-options:
38+
--version {LocalizableStrings.SDKVersionCommandDefinition}
39+
--info {LocalizableStrings.SDKInfoCommandDefinition}
40+
-d|--diagnostics {LocalizableStrings.SDKDiagnosticsCommandDefinition}
41+
4042
runtime-options:
4143
--additionalprobingpath <path> {LocalizableStrings.AdditionalprobingpathDefinition}
42-
--depsfile <path> {LocalizableStrings.DepsfilDefinition}
43-
--runtimeconfig <path> {LocalizableStrings.RuntimeconfigDefinition}
4444
--fx-version <version> {LocalizableStrings.FxVersionDefinition}
4545
--roll-forward-on-no-candidate-fx {LocalizableStrings.RollForwardOnNoCandidateFxDefinition}
4646
--additional-deps <path> {LocalizableStrings.AdditionalDeps}

test/dotnet-help.Tests/GivenThatIWantToShowHelpForDotnetCommand.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class GivenThatIWantToShowHelpForDotnetCommand : TestBase
1616
{
1717
private const string HelpText =
1818
@"Usage: dotnet [runtime-options] [path-to-application]
19-
Usage: dotnet [command] [arguments] [command-options]
19+
Usage: dotnet [sdk-options] [command] [arguments] [command-options]
2020
2121
path-to-application:
2222
The path to an application .dll file to execute.
@@ -38,20 +38,20 @@ list List reference in the project.
3838
nuget Provides additional NuGet commands.
3939
msbuild Runs Microsoft Build Engine (MSBuild).
4040
vstest Runs Microsoft Test Execution Command Line Tool.
41-
-v|--version Display .NET Core SDK version.
42-
-i|--info Display .NET Core information.
43-
-d|--diagnostics Enable diagnostic output.
4441
4542
Common options:
4643
-v|--verbosity Set the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
4744
-h|--help Show help.
4845
4946
Run 'dotnet COMMAND --help' for more information on a command.
5047
48+
sdk-options:
49+
--version Display .NET Core SDK version.
50+
--info Display .NET Core information.
51+
-d|--diagnostics Enable diagnostic output.
52+
5153
runtime-options:
5254
--additionalprobingpath <path> Path containing probing policy and assemblies to probe for.
53-
--depsfile <path> Path to <application>.deps.json file.
54-
--runtimeconfig <path> Path to <application>.runtimeconfig.json file.
5555
--fx-version <version> Version of the installed Shared Framework to use to run the application.
5656
--roll-forward-on-no-candidate-fx Roll forward on no candidate shared framework is enabled.
5757
--additional-deps <path> Path to additonal deps.json file.";

0 commit comments

Comments
 (0)