Skip to content

Commit

Permalink
Consider --debug when a debugger is attached to nugetize CLI
Browse files Browse the repository at this point in the history
Just like we do with --bl, which makes it very convenient for local debugging/troubleshooting.
  • Loading branch information
kzu committed Oct 4, 2020
1 parent ba39371 commit b22592e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotnet-nugetize/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Program
static int Main(string[] args)
{
var binlog = Debugger.IsAttached || args.Any(arg => arg == "--bl" || arg == "-bl");
var debug = args.Any(args => args == "--debug");
var debug = Debugger.IsAttached || args.Any(args => args == "--debug");

if (args.Any(arg => arg == "--version"))
ColorConsole.WriteLine($"{ThisAssembly.Project.ToolCommandName} version {ThisAssembly.Project.Version}".Green());
Expand Down

0 comments on commit b22592e

Please sign in to comment.