예제 #1
0
 public static Options ParseCommandLineArgs(string[] args)
 {
     var options = new Options();
     if (Parser.Default.ParseArguments(args, options))
     {
         Current = options;
         return options;
     }
     // CommandLineParser automagically handles displaying help
     return null;
 }
예제 #2
0
 public Options()
 {
     Current = this;
 }