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;
 }
Пример #3
0
 public ParseContext(ParserOptions parserOptions, HelpOptions helpOptions)
 {
     this.helpOptions   = helpOptions;
     this.parserOptions = parserOptions;
 }
Пример #4
0
 public CommandLineBuilder(string applicationName)
     : base(Command.CreateRoot <TSettings>(applicationName))
 {
     this.helpOptions   = new HelpOptions();
     this.parserOptions = new ParserOptions();
 }
Пример #5
0
 public Parser(ParserOptions parserOptions, HelpOptions helpOptions, Command root)
 {
     this.parserOptions = parserOptions;
     this.helpOptions   = helpOptions;
     this.root          = root;
 }