SearchCommand constructor
SearchCommand()
Implementation
SearchCommand() {
argParser
..addOption(
'regexp',
valueHelp: 'pattern',
help: 'regex pattern',
)
..addMultiOption(
'extmime',
help: "ext mime for search (e.g. --extmine='yaml=text/yaml')",
)
..addFlag(
'linebyline',
negatable: true,
defaultsTo: true,
help: 'line by line file processing',
)
..addFlag(
'esc',
negatable: false,
help: 'escape regexp special characters.',
)
..addFlag(
'rei',
negatable: false,
help: 'regex use case insensitive.',
)
..addFlag(
'reu',
negatable: false,
help: 'regex use unicode.',
)
..addFlag(
'res',
negatable: false,
help: 'regex use dot all.',
)
..addFlag(
'rem',
negatable: false,
help: 'regex use multiLine.',
)
..addOption(
'replace',
help: 'regexp has match to replace',
);
}