buildParser function
ArgParser
buildParser()
Builds the argument parser for the 'flutter-test-coverage-workaround' subcommand.
Implementation
ArgParser buildParser() {
return ArgParser()
..addFlag(
'help',
abbr: 'h',
negatable: false,
help: 'Print help for this command.',
)
..addMultiOption(
'include',
abbr: 'i',
help:
'Include only files matching pattern (glob). '
'Can be specified multiple times.',
)
..addMultiOption(
'exclude',
abbr: 'e',
help:
'Exclude files matching pattern (glob). '
'Can be specified multiple times.',
)
..addOption(
'target',
abbr: 't',
help: 'Target test directory.',
allowed: ['test', 'integration_test'],
defaultsTo: 'test',
)
..addOption(
'preset',
abbr: 'p',
help: 'Use a named preset from buggy.yaml.',
);
}