diff --git a/src/Cli/dotnet/Commands/NuGet/NuGetCommandParser.cs b/src/Cli/dotnet/Commands/NuGet/NuGetCommandParser.cs index 89c0af1d020d..6403c26fcf04 100644 --- a/src/Cli/dotnet/Commands/NuGet/NuGetCommandParser.cs +++ b/src/Cli/dotnet/Commands/NuGet/NuGetCommandParser.cs @@ -20,7 +20,7 @@ private static Command SetAction(Command command) foreach (var subcommand in command.Subcommands) { - subcommand.SetAction(NuGetCommand.Run); + SetAction(subcommand); } return command;