CommandRunner<T> constructor

CommandRunner<T>(
  1. String executableName,
  2. String description, {
  3. int? usageLineLength,
  4. int suggestionDistanceLimit = 2,
})

Implementation

CommandRunner(this.executableName, this.description,
    {int? usageLineLength, this.suggestionDistanceLimit = 2})
    : _argParser = ArgParser(usageLineLength: usageLineLength) {
  argParser.addFlag('help',
      abbr: 'h', negatable: false, help: 'Print this usage information.');
  addCommand(HelpCommand<T>());
}