public ManifestInfo(Options options)
 {
     _opt = options;
     if (!string.IsNullOrEmpty(_opt.OutputFile))
     {
         _opt.OutputFile = Path.Combine(_baseDir, _opt.OutputFile);
     }
 }
Beispiel #2
0
        private static int RunProgramm(string[] args)
        {
            var options = new Options();
            ICommandLineParser parser = new CommandLineParser();
            if (parser.ParseArguments(args, options, Console.Error))
            {
                try
                {
                    new ManifestInfo(options).Run();
                    return 0;
                }
                catch (Exception e)
                {
                    Console.Error.WriteLine(e.ToString());

                    if (Debugger.IsAttached)
                        throw;

                    return -1;
                }
            }

            return -1;
        }