MigrateConfigCommand constructor

MigrateConfigCommand()

Implementation

MigrateConfigCommand() {
  argParser
    ..addFlag('apply',
        negatable: false,
        help: 'Make the changes (without it, only shows what would change).')
    ..addFlag('allow-dirty',
        negatable: false, help: 'Apply even with uncommitted git changes.')
    ..addFlag('include-detected',
        negatable: false,
        help:
            'When code reads keys by computed name, still compile in only the keys detected '
            'from its string literals (check the list in the preview first).')
    ..addFlag('force',
        negatable: false,
        help: 'Apply even when some code needs manual changes first.')
    ..addOption('output',
        defaultsTo: AppConfigSettings.defaultOutput,
        help: 'Generated Dart file, under lib/.')
    ..addOption('class-name',
        defaultsTo: AppConfigSettings.defaultClassName,
        help: 'Name of the generated class.');
}