diff options
author | Bob Arnson <bob@joyofsetup.com> | 2018-08-28 17:11:38 -0400 |
---|---|---|
committer | Bob Arnson <bob@joyofsetup.com> | 2018-08-28 17:11:38 -0400 |
commit | 1cb859042736096a43928e770c73fbd7c6065da7 (patch) | |
tree | eae5260a6eb9c905f80d1cb40b8fdd48d16fdf5d /src/WixToolset.Core | |
parent | 7972bb567d3957868ea531dded384f38385c81c6 (diff) | |
download | wix-1cb859042736096a43928e770c73fbd7c6065da7.tar.gz wix-1cb859042736096a43928e770c73fbd7c6065da7.tar.bz2 wix-1cb859042736096a43928e770c73fbd7c6065da7.zip |
Support warning suppression.
Diffstat (limited to 'src/WixToolset.Core')
-rw-r--r-- | src/WixToolset.Core/CommandLine/CommandLineParser.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/WixToolset.Core/CommandLine/CommandLineParser.cs b/src/WixToolset.Core/CommandLine/CommandLineParser.cs index d518931a..b0ad6cad 100644 --- a/src/WixToolset.Core/CommandLine/CommandLineParser.cs +++ b/src/WixToolset.Core/CommandLine/CommandLineParser.cs | |||
@@ -144,7 +144,7 @@ namespace WixToolset.Core.CommandLine | |||
144 | return true; | 144 | return true; |
145 | 145 | ||
146 | case "outputtype": | 146 | case "outputtype": |
147 | outputType= parser.GetNextArgumentOrError(arg); | 147 | outputType = parser.GetNextArgumentOrError(arg); |
148 | return true; | 148 | return true; |
149 | 149 | ||
150 | case "nologo": | 150 | case "nologo": |
@@ -164,6 +164,16 @@ namespace WixToolset.Core.CommandLine | |||
164 | case "sval": | 164 | case "sval": |
165 | // todo: implement | 165 | // todo: implement |
166 | return true; | 166 | return true; |
167 | |||
168 | case "sw": | ||
169 | case "suppresswarning": | ||
170 | var warning = parser.GetNextArgumentOrError(arg); | ||
171 | if (!String.IsNullOrEmpty(warning)) | ||
172 | { | ||
173 | var warningNumber = Convert.ToInt32(warning); | ||
174 | this.Messaging.SuppressWarningMessage(warningNumber); | ||
175 | } | ||
176 | return true; | ||
167 | } | 177 | } |
168 | 178 | ||
169 | return false; | 179 | return false; |