RunCommand constructor

RunCommand(
  1. Future<void> userMethod({
    1. String? format,
    2. int? maxSize,
    3. String? prefix,
    4. String? profile,
    5. bool? removeComments,
    6. String? source,
    7. String? type,
    8. bool verbose,
    9. bool yes,
    })
)

Implementation

RunCommand(this.userMethod) {
  argParser
    ..addOption(
      'source',
      mandatory: false,
    )
    ..addOption(
      'type',
      mandatory: false,
    )
    ..addOption(
      'prefix',
      mandatory: false,
    )
    ..addOption(
      'max-size',
      mandatory: false,
    )
    ..addFlag('remove-comments')
    ..addOption(
      'format',
      mandatory: false,
    )
    ..addOption(
      'profile',
      mandatory: false,
    )
    ..addFlag(
      'yes',
      defaultsTo: false,
    )
    ..addFlag(
      'verbose',
      defaultsTo: false,
    );
}