run<O extends OptionDefinition, R> method

  1. @override
FutureOr<R?> run<O extends OptionDefinition, R>(
  1. CommandContext<O, R> context
)
override

Runs this action option. context is the context of the command that defined this action option.

Implementation

@override
FutureOr<R?> run<O extends OptionDefinition, R>(
  final CommandContext<O, R> context,
) {
  printCommandUsage(context.leaf());
  return null;
}