diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-01-07 23:12:49 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-01-08 15:47:31 -0800 |
| commit | e35ee2e8c58bf55da5f3d04915d588fb04d6809d (patch) | |
| tree | 4bf0cfd782ec990b6a5d4ac9aec390d44dee097b /src/WixToolset.Core/CommandLine/BuildCommand.cs | |
| parent | 458ff7ce24b33f6df46ae8ef728685c555d55ff7 (diff) | |
| download | wix-e35ee2e8c58bf55da5f3d04915d588fb04d6809d.tar.gz wix-e35ee2e8c58bf55da5f3d04915d588fb04d6809d.tar.bz2 wix-e35ee2e8c58bf55da5f3d04915d588fb04d6809d.zip | |
Report invalid command line arguments as errors
Fixes wixtoolset/issues#6313
Diffstat (limited to 'src/WixToolset.Core/CommandLine/BuildCommand.cs')
| -rw-r--r-- | src/WixToolset.Core/CommandLine/BuildCommand.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/WixToolset.Core/CommandLine/BuildCommand.cs b/src/WixToolset.Core/CommandLine/BuildCommand.cs index fed95958..065467bd 100644 --- a/src/WixToolset.Core/CommandLine/BuildCommand.cs +++ b/src/WixToolset.Core/CommandLine/BuildCommand.cs | |||
| @@ -841,8 +841,7 @@ namespace WixToolset.Core.CommandLine | |||
| 841 | } | 841 | } |
| 842 | else | 842 | else |
| 843 | { | 843 | { |
| 844 | this.Messaging.Write(ErrorMessages.IllegalSuppressWarningId(paramArg)); | 844 | parser.ReportErrorArgument(parameter, ErrorMessages.IllegalSuppressWarningId(paramArg)); |
| 845 | parser.ErrorArgument = parameter; | ||
| 846 | } | 845 | } |
| 847 | } | 846 | } |
| 848 | 847 | ||
| @@ -859,8 +858,7 @@ namespace WixToolset.Core.CommandLine | |||
| 859 | } | 858 | } |
| 860 | else | 859 | else |
| 861 | { | 860 | { |
| 862 | this.Messaging.Write(ErrorMessages.IllegalSuppressWarningId(paramArg)); | 861 | parser.ReportErrorArgument(parameter, ErrorMessages.IllegalSuppressWarningId(paramArg)); |
| 863 | parser.ErrorArgument = parameter; | ||
| 864 | } | 862 | } |
| 865 | } | 863 | } |
| 866 | } | 864 | } |
