Skip to content

Commit 80beb9c

Browse files
committed
Little push
1 parent 5ca0b5c commit 80beb9c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/dotnet-bootstrapper/BootstrapperCommandParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static BootstrapperCommandParser()
2424
BootstrapperRootCommand.AddCommand(CommandLineConfigs.ListCommand);
2525
BootstrapperRootCommand.AddCommand(CommandLineConfigs.RemoveCommand);
2626
BootstrapperRootCommand.AddCommand(HelpCommand);
27-
VersionCommand.Handler = CommandHandler.Create(() =>
27+
HelpCommand.Handler = CommandHandler.Create(() =>
2828
{
2929
Console.WriteLine(LocalizableStrings.BootstrapperHelp);
3030
});

src/dotnet-core-uninstall/Shared/Configs/CommandLineConfigs.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace Microsoft.DotNet.Tools.Uninstall.Shared.Configs
2222
{
23-
internal static class CommandLineConfigs
23+
public static class CommandLineConfigs
2424
{
2525
public static Parser UninstallCommandParser;
2626

@@ -185,7 +185,7 @@ internal static class CommandLineConfigs
185185
ForceOption
186186
};
187187

188-
public static readonly Dictionary<string, VerbosityLevel> VerbosityLevels = new Dictionary<string, VerbosityLevel>
188+
internal static readonly Dictionary<string, VerbosityLevel> VerbosityLevels = new Dictionary<string, VerbosityLevel>
189189
{
190190
{ "q", VerbosityLevel.Quiet }, { "quiet", VerbosityLevel.Quiet },
191191
{ "m", VerbosityLevel.Minimal }, { "minimal", VerbosityLevel.Minimal },
@@ -221,7 +221,7 @@ static CommandLineConfigs()
221221
UninstallRootCommand.AddCommand(ListCommand);
222222
UninstallRootCommand.AddCommand(DryRunCommand);
223223
UninstallRootCommand.AddCommand(RemoveCommand);
224-
RemoveCommand.Aliases.Add(UninstallCommandName); // The verbiage that makes the most sense from the bootstrapper would be 'uninstall', so just adding an alias permits more code sharing
224+
RemoveCommand.AddAlias(UninstallCommandName); // The verbiage that makes the most sense from the bootstrapper would be 'uninstall', so just adding an alias permits more code sharing
225225
UninstallRootCommand.AddCommand(VersionSubcommand);
226226

227227
if (RuntimeInfo.RunningOnOSX)
@@ -314,7 +314,7 @@ public static Option GetUninstallMainOption(this CommandResult commandResult)
314314
return specifiedOption;
315315
}
316316

317-
public static BundleType GetTypeSelection(this ParseResult parseResult)
317+
internal static BundleType GetTypeSelection(this ParseResult parseResult)
318318
{
319319
var supportedBundleTypes = SupportedBundleTypeConfigs.GetSupportedBundleTypes();
320320

@@ -328,7 +328,7 @@ public static BundleType GetTypeSelection(this ParseResult parseResult)
328328
typeSelection;
329329
}
330330

331-
public static BundleArch GetArchSelection(this ParseResult parseResult)
331+
internal static BundleArch GetArchSelection(this ParseResult parseResult)
332332
{
333333
var archSelection = new[]
334334
{
@@ -345,7 +345,7 @@ public static BundleArch GetArchSelection(this ParseResult parseResult)
345345
archSelection;
346346
}
347347

348-
public static VerbosityLevel GetVerbosityLevel(this CommandResult commandResult)
348+
internal static VerbosityLevel GetVerbosityLevel(this CommandResult commandResult)
349349
{
350350
var optionResult = commandResult.FindResultFor(VerbosityOption);
351351

0 commit comments

Comments
 (0)