AssetsCommand constructor

AssetsCommand()

The command used to run the AssetsGenerator.

Implementation

AssetsCommand() : super('./assets.g.dart') {
  argParser
    ..addOption(
      'base-name',
      abbr: 'n',
      help: 'The name of the generated class. Defaults to `Assets`.',
    )
    ..addFlag(
      'convert',
      abbr: 'c',
      help: 'If the file names should be converted to camel case. Disabling '
          'this option will prevent any changes to be made to the file '
          'names. Be certain to pass valid Dart names or the generation will '
          'be likely to fail. Defaults to `true`.',
      defaultsTo: null,
    );
}