run method
Runs this command as a leaf command. Implemented by subclasses.
Implementation
@override
FutureOr<T?> run(final CommandContext context) {
// If run is called, this is the last command on the command line -
// show the help for the previous command.
final parent = context.prev;
if (parent == null) throw StateError('A parent command is expected');
printCommandUsage(parent);
return null;
}