Exemple #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;
 }
Exemple #2
0
 public Options()
 {
     Current = this;
 }