private bool ParseFlatArgument(string s) { switch (s) { case "/help": case "/h": case "/?": ErrorUtilities.ShowUsage(); break; case "/nologo": noLogo = true; break; case "/version": case "/ver": ErrorUtilities.ShowVersion(true); break; case "/noconsolelogger": case "/noconlog": noConsoleLogger = true; break; case "/validate": case "/val": validate = true; break; case "/fl": case "/filelogger": if (FileLoggerParameters [0] == null) { FileLoggerParameters [0] = String.Empty; } break; default: if (s.StartsWith("/fl") && s.Length == 4 && Char.IsDigit(s[3])) { int index = Int32.Parse(s[3].ToString()); if (FileLoggerParameters [index] == null) { FileLoggerParameters [index] = String.Empty; } } else if (s.StartsWith("/fileloggerparameters") || s.StartsWith("/flp")) { ProcessFileLoggerParameters(s); } else if (s.StartsWith("/target:") || s.StartsWith("/t:")) { ProcessTarget(s); } else if (s.StartsWith("/property:") || s.StartsWith("/p:")) { if (!ProcessProperty(s)) { return(false); } } else if (s.StartsWith("/logger:") || s.StartsWith("/l:")) { ProcessLogger(s); } else if (s.StartsWith("/verbosity:") || s.StartsWith("/v:")) { ProcessVerbosity(s); } else if (s.StartsWith("/consoleloggerparameters:") || s.StartsWith("/clp:")) { ProcessConsoleLoggerParameters(s); } else if (s.StartsWith("/validate:") || s.StartsWith("/val:")) { ProcessValidate(s); } else if (s.StartsWith("/toolsversion:") || s.StartsWith("/tv:")) { ToolsVersion = s.Split(':') [1]; } else { return(false); } break; } return(true); }
private bool ParseFlatArgument(string s) { switch (s) { case "/help": case "/h": case "/?": ErrorUtilities.ShowUsage(); break; case "/nologo": noLogo = true; break; case "/version": case "/ver": ErrorUtilities.ShowVersion(true); break; case "/noconsolelogger": case "/noconlog": noConsoleLogger = true; break; case "/validate": case "/val": validate = true; break; default: if (s.StartsWith("/target:") || s.StartsWith("/t:")) { ProcessTarget(s); } else if (s.StartsWith("/property:") || s.StartsWith("/p:")) { if (!ProcessProperty(s)) { return(false); } } else if (s.StartsWith("/logger:") || s.StartsWith("/l:")) { ProcessLogger(s); } else if (s.StartsWith("/verbosity:") || s.StartsWith("/v:")) { ProcessVerbosity(s); } else if (s.StartsWith("/consoleloggerparameters:") || s.StartsWith("/clp:")) { ProcessConsoleLoggerParameters(s); } else if (s.StartsWith("/validate:") || s.StartsWith("/val:")) { ProcessValidate(s); } else { return(false); } break; } return(true); }