UsagePrinter typedef

UsagePrinter = void Function(ArgumentSet args, UsageInfo info, UsageContext context, {required bool showShortUsage, required StringSink sink})

A function that prints usage information to the given sink. If showShortUsage is true, then this should only show a short "usage: " section, otherwise it should show the full help.

Implementation

typedef UsagePrinter = void Function(
    ArgumentSet args, UsageInfo info, UsageContext context,
    {required StringSink sink, required bool showShortUsage});