diff options
| author | Rob Mensching <rob@firegiant.com> | 2022-08-11 07:44:55 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2022-08-15 06:49:36 -0700 |
| commit | 4a21abbfc4d3b18bda3547a6c792be9f21df356e (patch) | |
| tree | 3996cc2ae6cd81054289bb64975eff0e87980db3 /src | |
| parent | 5d7ec5a92c43c74999dd65b148348a9122aa9c4b (diff) | |
| download | wix-4a21abbfc4d3b18bda3547a6c792be9f21df356e.tar.gz wix-4a21abbfc4d3b18bda3547a6c792be9f21df356e.tar.bz2 wix-4a21abbfc4d3b18bda3547a6c792be9f21df356e.zip | |
Ensure command-line error prevents execution of command
Fixes 6683
Diffstat (limited to 'src')
| -rw-r--r-- | src/wix/WixToolset.Core/CommandLine/CommandLine.cs | 6 |
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 | ||
