Example #1
0
        /// <summary>
        /// The main entry point.
        /// </summary>
        /// <param name="args">CLI parameters.</param>
        public static void Main(string[] args)
        {
            try
            {
                _options = new CliOptions(args);

                OutWriter.WriteLine($"Nca.Valdr -> {_options.OutputFileName} {_options.Culture}");

                new CliRunner(_options).Execute();
            }
            catch (ReflectionTypeLoadException ex)
            {
                foreach (var item in ex.LoaderExceptions)
                {
                    OutWriter.WriteLine(item.Message);
                }
            }
            catch (Exception ex)
            {
                OutWriter.WriteLine(ex.Message);
            }
            finally
            {
                OutWriter.Dispose();
            }
        }
Example #2
0
        /// <summary>
        /// The main entry point.
        /// </summary>
        /// <param name="args">CLI parameters.</param>
        public static void Main(string[] args)
        {
            try
            {
                _options = new CliOptions(args);

                OutWriter.WriteLine($"Nca.Valdr -> { _options.OutputFilename} {_options.Culture}");

                new CliRunner(_options).Execute();
            }
            catch (ReflectionTypeLoadException ex)
            {
                foreach (var item in ex.LoaderExceptions)
                {
                    OutWriter.WriteLine(item.Message);
                }
            }
            catch (Exception ex)
            {
                OutWriter.WriteLine(ex.Message);
            }
        }
Example #3
0
 public CliRunner(CliOptions options)
 {
     _options = options;
 }
Example #4
0
 public CliRunner(CliOptions options)
 {
     _options = options;
 }