public ExportTagsCommand(ExportTagsCommandOptions opt)
 {
     _rules = new RuleSet(WriteOnce.Log);
     _arg_customRulesPath    = opt.CustomRulesPath;
     _arg_outputFile         = opt.OutputFilePath;
     _arg_ignoreDefaultRules = opt.IgnoreDefaultRules;
     if (!Enum.TryParse(opt.ConsoleVerbosityLevel, true, out _arg_consoleVerbosityLevel))
     {
         throw new OpException(String.Format(ErrMsg.FormatString(ErrMsg.ID.CMD_INVALID_ARG_VALUE, "-x")));
     }
     WriteOnce.Verbosity = _arg_consoleVerbosityLevel;
     ConfigureOutput();
     ConfigRules();
 }
Example #2
0
 private static int RunExportTagsCommand(ExportTagsCommandOptions opts)
 {
     SetupLogging(opts.LogFilePath, opts.LogFileLevel);
     return(new ExportTagsCommand(opts).Run());
 }