Ejemplo n.º 1
0
 public void Initialize(string[] args)
 {
     parser.Parse(args);
     if (showUsage)
     {
         throw new OperationCanceledException();
     }
     if (!AssemblyFiles.Any())
     {
         throw new OptionException("No assembly file is specified", null);
     }
     if (!OutputFormats.Any())
     {
         throw new OptionException("No document format is specified", null);
     }
 }
Ejemplo n.º 2
0
        protected override bool ValidateValues()
        {
            // If nothing is set, default to ShowNonPortableApis
            if ((RequestFlags & (AnalyzeRequestFlags.ShowBreakingChanges | AnalyzeRequestFlags.ShowNonPortableApis)) == AnalyzeRequestFlags.None)
            {
                RequestFlags |= AnalyzeRequestFlags.ShowNonPortableApis;
            }

            // If no output formats have been supplied, default to Excel
            // TODO: Should probably get this from the service, not hard-coded
            if (!OutputFormats.Any())
            {
                UpdateOutputFormats("Excel");
            }

            return(InputAssemblies.Any());
        }