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;
 }