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); } }
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()); }