diff options
Diffstat (limited to 'src/WixToolset.Core/CommandLine/CommandLineParser.cs')
| -rw-r--r-- | src/WixToolset.Core/CommandLine/CommandLineParser.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
| 138 | { | 138 | { |
| 139 | var result = this.TryGetNextSwitchOrArgument(out arg); | 139 | var result = this.TryGetNextSwitchOrArgument(out arg); |
| 140 | 140 | ||
| 141 | if (!result && !this.IsSwitch(arg)) | 141 | if (!result || this.IsSwitch(arg)) |
| 142 | { | 142 | { |
| 143 | this.ErrorArgument = arg ?? CommandLineParser.ExpectedArgument; | 143 | this.ErrorArgument = arg ?? CommandLineParser.ExpectedArgument; |
| 144 | return false; | ||
| 144 | } | 145 | } |
| 145 | 146 | ||
| 146 | return result; | 147 | return result; |
