diff options
-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 | ||