/// <summary> /// The main method. /// </summary> /// <param name="args">The command line arguments.</param> /// <returns>Return code indicating success/failure.</returns> internal static int Main(string[] args) { if (args.Length < 2) { ReportConfigurationBuilder.ShowHelp(); return(1); } ReportConfiguration configuration = ReportConfigurationBuilder.Create(args); return(Execute(configuration) ? 0 : 1); }
/// <summary> /// The main method. /// </summary> /// <param name="args">The command line arguments.</param> /// <returns>Return code indicating success/failure.</returns> internal static int Main(string[] args) { if (args.Length < 2) { ReportConfigurationBuilder.ShowHelp(); return(1); } args = args.Select(a => a.EndsWith("\"", StringComparison.OrdinalIgnoreCase) ? a.TrimEnd('\"') + "\\" : a).ToArray(); ReportConfiguration configuration = ReportConfigurationBuilder.Create(args); return(Execute(configuration) ? 0 : 1); }
/// <summary> /// The main method. /// </summary> /// <param name="args">The command line arguments.</param> /// <returns>Return code indicating success/failure.</returns> internal static int Main(string[] args) { var reportConfigurationBuilder = new ReportConfigurationBuilder(new MefReportBuilderFactory()); if (args.Length < 2) { reportConfigurationBuilder.ShowHelp(); return(1); } args = args.Select(a => a.EndsWith("\"", StringComparison.OrdinalIgnoreCase) ? a.TrimEnd('\"') + "\\" : a).ToArray(); ReportConfiguration configuration = reportConfigurationBuilder.Create(args); return(new Generator().GenerateReport(configuration) ? 0 : 1); }
/// <summary> /// The main method. /// </summary> /// <param name="args">The command line arguments.</param> /// <returns>Return code indicating success/failure.</returns> internal static int Main(string[] args) { var reportConfigurationBuilder = new ReportConfigurationBuilder(new MefReportBuilderFactory()); if (args.Length < 2) { reportConfigurationBuilder.ShowHelp(); return 1; } args = args.Select(a => a.EndsWith("\"", StringComparison.OrdinalIgnoreCase) ? a.TrimEnd('\"') + "\\" : a).ToArray(); ReportConfiguration configuration = reportConfigurationBuilder.Create(args); return Execute(configuration) ? 0 : 1; }