Exemple #1
0
        /// <summary>
        /// The main method.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        /// <returns>Return code indicating success/failure.</returns>
        public static int Main(string[] args)
        {
            args = NormalizeArgs(args);

            if (args.Any(a => "-verbosity:verbose".Equals(a, System.StringComparison.OrdinalIgnoreCase)) ||
                !args.Any(a => a.StartsWith("-verbosity:")))
            {
                Logger.Debug(Resources.Arguments);

                foreach (var arg in args)
                {
                    Logger.Debug(" " + arg);
                }
            }

            var reportConfigurationBuilder    = new ReportConfigurationBuilder();
            ReportConfiguration configuration = reportConfigurationBuilder.Create(args);

            if (args.Length < 2)
            {
                var help = new Help(new ReportBuilderFactory(new ReflectionPluginLoader(configuration.Plugins)));
                help.ShowHelp();

                return(1);
            }

            return(new Generator().GenerateReport(configuration) ? 0 : 1);
        }
Exemple #2
0
        /// <summary>
        /// The main method.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        /// <returns>Return code indicating success/failure.</returns>
        public static int Main(string[] args)
        {
            args = NormalizeArgs(args);

            var reportConfigurationBuilder    = new ReportConfigurationBuilder();
            ReportConfiguration configuration = reportConfigurationBuilder.Create(args);

            if (args.Length < 2)
            {
                var help = new Help(new ReportBuilderFactory(new ReflectionPluginLoader(configuration.Plugins)));
                help.ShowHelp();

                return(1);
            }

            return(new Generator().GenerateReport(configuration) ? 0 : 1);
        }
Exemple #3
0
        /// <summary>
        /// The main method.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        /// <returns>Return code indicating success/failure.</returns>
        public static int Main(string[] args)
        {
            args = args.Select(a => a.EndsWith("\"", StringComparison.OrdinalIgnoreCase) ? a.TrimEnd('\"') + "\\" : a).ToArray();

            var reportConfigurationBuilder    = new ReportConfigurationBuilder();
            ReportConfiguration configuration = reportConfigurationBuilder.Create(args);

            if (args.Length < 2)
            {
                var help = new Help(new ReportBuilderFactory(new ReflectionPluginLoader(configuration.Plugins)));
                help.ShowHelp();

                return(1);
            }

            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>
        public static int Main(string[] args)
        {
            args = NormalizeArgs(args);

            Logger.Debug(Resources.Arguments);

            foreach (var arg in args)
            {
                Logger.Debug(" " + arg);
            }

            var reportConfigurationBuilder    = new ReportConfigurationBuilder();
            ReportConfiguration configuration = reportConfigurationBuilder.Create(args);

            if (args.Length < 2)
            {
                var help = new Help(new ReportBuilderFactory(new ReflectionPluginLoader(configuration.Plugins)));
                help.ShowHelp();

                return(1);
            }

            return(new Generator().GenerateReport(configuration) ? 0 : 1);
        }