aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/WixToolset.Core/CommandLine/CommandLineParser.cs12
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;