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)); }
public CliParserBuilder(TConf obj) { FluentConfig = new FluentParserConfig <TConf>(ParserOptions.None, Enumerable.Empty <ITerminatingTrigger>()); Object = obj; }
public CliParserBuilder(TConf obj) { FluentConfig = new FluentParserConfig <TConf>(ParserOptions.Default, Enumerable.Empty <ITerminatingTrigger>(), new ParameterlessVerbFactory()); Object = obj; }