run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
Future<void> run() {
final results = argResults!;
return userMethod(
source: (results['source'] as String?) ?? null,
type: (results['type'] as String?) ?? null,
prefix: (results['prefix'] as String?) ?? null,
maxSize:
results['max-size'] != null ? int.parse(results['max-size']) : null,
removeComments: (results['remove-comments'] as bool?) ?? null,
format: (results['format'] as String?) ?? null,
profile: (results['profile'] as String?) ?? null,
yes: (results['yes'] as bool?) ?? false,
verbose: (results['verbose'] as bool?) ?? false,
);
}