CommandTemplateBase constructor

CommandTemplateBase(
  1. String cliTitle,
  2. ConsolePrinter consolePrinter, {
  3. bool allowIgnoreOptions = true,
})

Implementation

CommandTemplateBase(super.cliTitle, super.consolePrinter,
    {bool allowIgnoreOptions = true}) {
  if (allowIgnoreOptions) {
    argParser.addMultiOption(
      'ignore',
      abbr: 'i',
      help: 'Ignore a path from template/directory.',
      valueHelp: 'dir/file.txt',
    );

    argParser.addMultiOption(
      'regexp',
      abbr: 'r',
      help: 'Ignore a path by `RegExp` from template/directory.',
      valueHelp: r'\.txt$',
    );
  }
}