SaveCommand constructor

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

Implementation

SaveCommand(this.userMethod) {
  argParser
    ..addOption(
      'name',
      mandatory: true,
    )
    ..addOption(
      'source',
      mandatory: false,
    )
    ..addOption(
      'type',
      mandatory: false,
    )
    ..addOption(
      'prefix',
      mandatory: false,
    )
    ..addOption(
      'max-size',
      mandatory: false,
    )
    ..addFlag(
      'remove-comments',
      defaultsTo: true,
    )
    ..addOption(
      'format',
      defaultsTo: 'text',
      mandatory: false,
    );
}