printUsage method

void printUsage({
  1. StringSink? sink,
  2. bool showShortUsage = false,
})

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);