CommandTemplateBase constructor
CommandTemplateBase(
- String cliTitle,
- ConsolePrinter consolePrinter, {
- 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$',
);
}
}