Esempio n. 1
0
 public static bool ParseHelp(string[] args)
 {
     var helpParser = new Parser(typeof (HelpArgument), NullErrorReporter);
     var helpArgument = new HelpArgument();
     helpParser.Parse(args, helpArgument);
     return helpArgument.help;
 }
Esempio n. 2
0
 public static bool ParseArguments(string[] arguments, object destination, ErrorReporter reporter)
 {
     var parser = new Parser(destination.GetType(), reporter);
     return parser.Parse(arguments, destination);
 }