printCommandUsage function

void printCommandUsage(
  1. CommandContext<OptionDefinition, dynamic> context
)

Prints the usage of the contest's command to the usage output, via the root command's UsageOutputHandler.

Implementation

void printCommandUsage(final CommandContext context) {
  context.command.runner.usageOutput.printUsage(context.command);
}