Skip to content

Commit

Permalink
Try to fix spurios -m when found in a command line argument string.
Browse files Browse the repository at this point in the history
  • Loading branch information
CartBlanche committed Aug 4, 2023
1 parent e9714f7 commit 496d2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meadow.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static async Task<int> Main(string[] args)
.Build();

var logLevel = LogEventLevel.Information;
var logModifier = args.FirstOrDefault(a => a.Contains("-m"))
var logModifier = args.FirstOrDefault(a => a.Equals("-m"))
?.Count(x => x == 'm') ?? 0;

logLevel -= logModifier;
Expand Down

0 comments on commit 496d2b0

Please sign in to comment.