public CommandLineBuilder(string applicationName) { if (string.IsNullOrWhiteSpace(applicationName)) { throw new ArgumentNullException(nameof(applicationName)); } this.command = Command.CreateRoot(applicationName); this.helpOptions = new HelpOptions(); this.parserOptions = new ParserOptions(); }
public HelpEntrypoint( ParseContext parseContext, Command parsedCommand, string error, string?detail = null) { this.helpOptions = parseContext.helpOptions; this.parserOptions = parseContext.parserOptions; this.parsedCommand = parsedCommand; this.error = error; this.errorDetail = detail; }
public ParseContext(ParserOptions parserOptions, HelpOptions helpOptions) { this.helpOptions = helpOptions; this.parserOptions = parserOptions; }
public CommandLineBuilder(string applicationName) : base(Command.CreateRoot <TSettings>(applicationName)) { this.helpOptions = new HelpOptions(); this.parserOptions = new ParserOptions(); }
public Parser(ParserOptions parserOptions, HelpOptions helpOptions, Command root) { this.parserOptions = parserOptions; this.helpOptions = helpOptions; this.root = root; }