addCommands<T> method

CommandSet<T> addCommands<T>({
  1. required ValueParser<T> parser,
  2. ValuePrinter<T>? printer,
})

Sets up this parser to parse subcommands.

Implementation

CommandSet<T> addCommands<T>(
        {required ValueParser<T> parser, ValuePrinter<T>? printer}) =>
    CommandSet._(
        this,
        _base.addCommands<T>(
            parser: parser, printer: printer ?? toStringValuePrinter));