ScanCommand constructor

ScanCommand()

Implementation

ScanCommand() {
  argParser.addOption(
    'output',
    abbr: 'o',
    allowed: ['terminal', 'json', 'html'],
    defaultsTo: 'terminal',
    help: 'Output format.',
  );
  argParser.addOption(
    'report-file',
    help:
        'Path to write the report to (only used when --output=html or json). '
        'Defaults to flutter_audit_report.<ext> in the current directory.',
  );
  argParser.addFlag(
    'fail-on-error',
    defaultsTo: false,
    help: 'Exit with non-zero code if any error/critical issue is found.',
  );
}