argParser property
The argument parser for this tool, if needed.
When this tool is run from the command-line, this will be used to parse the arguments. The results will be available via the DevToolExecutionContext provided when calling run.
Implementation
@override
final ArgParser argParser = ArgParser()
..addSeparator('======== Formatter Mode')
..addFlag('overwrite',
abbr: 'w',
negatable: false,
help: 'Overwrite input files with formatted output.')
..addFlag('dry-run',
abbr: 'n',
negatable: false,
help: 'Show which files would be modified but make no changes.')
..addFlag('check',
abbr: 'c',
negatable: false,
help: 'Check if changes need to be made and set the exit code '
'accordingly.\nImplies "--dry-run" and "--set-exit-if-changed".')
..addSeparator('======== Other Options')
..addOption('formatter-args',
help: 'Args to pass to the "dartfmt" or "dart format" process.\n'
'Run "dartfmt -h -v" or "dart format -h -v" to see all available options.');