示例#1
0
文件: Program.cs 项目: jameshy/else
 private static void Main(string[] args)
 {
     SetupNlog();
     var options = new SimulatorOptions();
     if (Parser.Default.ParseArguments(args, options)) {
         // we cannot mark PluginDirectory option as Required=True, so we manually check here and show help if it is missing.
         if (string.IsNullOrWhiteSpace(options.PluginDirectory)) {
             Console.Write(options.GetUsage());
         }
         else {
             // all seems good, execute the PluginRunner
             var pluginRunner = new PluginRunner();
             pluginRunner.Run(options);
         }
     }
 }