Beispiel #1
0
 public CliParserBuilder(ParserOptions options, IEnumerable <ITerminatingTrigger> triggers)
 {
     FluentConfig = new FluentParserConfig <TConf>(options, triggers);
     Options      = options;
     // Verb's settings object
     // Object must have default constructor
     Object = (TConf)Activator.CreateInstance(typeof(TConf));
 }
Beispiel #2
0
 public CliParserBuilder(TConf obj)
 {
     FluentConfig = new FluentParserConfig <TConf>(ParserOptions.None,
                                                   Enumerable.Empty <ITerminatingTrigger>());
     Object = obj;
 }
Beispiel #3
0
 public CliParserBuilder(TConf obj)
 {
     FluentConfig = new FluentParserConfig <TConf>(ParserOptions.Default,
                                                   Enumerable.Empty <ITerminatingTrigger>(), new ParameterlessVerbFactory());
     Object = obj;
 }