Support warning suppression.
Bob Arnson committed
Aug 28, 2018 at 17:11 UTC
1cb859042736096a43928e770c73fbd7c6065da7
1 file changed
+11
-1
src/WixToolset.Core/CommandLine/CommandLineParser.cs
+11
-1
@@ -144,7 +144,7 @@ namespace WixToolset.Core.CommandLine
144
return true;
145
146
case "outputtype":
147
- outputType= parser.GetNextArgumentOrError(arg);
147
+ outputType = parser.GetNextArgumentOrError(arg);
148
return true;
149
150
case "nologo":
@@ -164,6 +164,16 @@ namespace WixToolset.Core.CommandLine
164
case "sval":
165
// todo: implement
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;
177
}
178
179
return false;