aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2022-08-11 07:44:55 -0700
committerRob Mensching <rob@firegiant.com>2022-08-15 06:49:36 -0700
commit4a21abbfc4d3b18bda3547a6c792be9f21df356e (patch)
tree3996cc2ae6cd81054289bb64975eff0e87980db3
parent5d7ec5a92c43c74999dd65b148348a9122aa9c4b (diff)
downloadwix-4a21abbfc4d3b18bda3547a6c792be9f21df356e.tar.gz
wix-4a21abbfc4d3b18bda3547a6c792be9f21df356e.tar.bz2
wix-4a21abbfc4d3b18bda3547a6c792be9f21df356e.zip
Ensure command-line error prevents execution of command
Fixes 6683
-rw-r--r--src/wix/WixToolset.Core/CommandLine/CommandLine.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wix/WixToolset.Core/CommandLine/CommandLine.cs b/src/wix/WixToolset.Core/CommandLine/CommandLine.cs
index 0921f9ff..07dcc2d2 100644
--- a/src/wix/WixToolset.Core/CommandLine/CommandLine.cs
+++ b/src/wix/WixToolset.Core/CommandLine/CommandLine.cs
@@ -118,6 +118,12 @@ namespace WixToolset.Core.CommandLine
118 extension.PostParse(); 118 extension.PostParse();
119 } 119 }
120 120
121 // If we hit an error, do not return a command.
122 if (!String.IsNullOrEmpty(parser.ErrorArgument))
123 {
124 return null;
125 }
126
121 return command ?? new HelpCommand(extensions, branding); 127 return command ?? new HelpCommand(extensions, branding);
122 } 128 }
123 129