From df40c2722e4a41e01cf326353e2583ae82ccc9a4 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sat, 2 Jan 2021 20:05:54 -0600 Subject: Fix TryGetNextNonSwitchArgumentOrError. --- src/WixToolset.Core/CommandLine/CommandLineParser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/WixToolset.Core/CommandLine/CommandLineParser.cs') diff --git a/src/WixToolset.Core/CommandLine/CommandLineParser.cs b/src/WixToolset.Core/CommandLine/CommandLineParser.cs index 1438d820..e78da47e 100644 --- a/src/WixToolset.Core/CommandLine/CommandLineParser.cs +++ b/src/WixToolset.Core/CommandLine/CommandLineParser.cs @@ -138,9 +138,10 @@ namespace WixToolset.Core.CommandLine { var result = this.TryGetNextSwitchOrArgument(out arg); - if (!result && !this.IsSwitch(arg)) + if (!result || this.IsSwitch(arg)) { this.ErrorArgument = arg ?? CommandLineParser.ExpectedArgument; + return false; } return result; -- cgit v1.2.3-55-g6feb