public TagDiffCommand(TagDiffCommandOptions opt)
        {
            _arg_src1       = opt.SourcePath1;
            _arg_src2       = opt.SourcePath2;
            _arg_rulesPath  = opt.CustomRulesPath;
            _arg_outputFile = opt.OutputFilePath;
            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;

            if (!Enum.TryParse(opt.TestType, true, out _arg_tagTestType))
            {
                throw new OpException(ErrMsg.FormatString(ErrMsg.ID.CMD_INVALID_ARG_VALUE, opt.TestType));
            }

            _arg_ignoreDefault = opt.IgnoreDefaultRules;
        }
Esempio n. 2
0
 private static int RunTagDiffCommand(TagDiffCommandOptions opts)
 {
     SetupLogging(opts.LogFilePath, opts.LogFileLevel);
     return(new TagDiffCommand(opts).Run());
 }