printUsage method
Prints the usage information using this parser's usagePrinter to the
given sink
. If showShortUsage
is true
, then the printed usage will
only contain the "Usage:" line showing a brief summary of how to use
this parser.
Implementation
void printUsage({StringSink? sink, bool showShortUsage = false}) =>
usagePrinter(args, info, usageContext,
sink: sink ?? stdout, showShortUsage: showShortUsage);