Exemplo n.º 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();
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
0
 public CliRunner(CliOptions options)
 {
     _options = options;
 }
Exemplo n.º 4
0
 public CliRunner(CliOptions options)
 {
     _options = options;
 }