printUsage method

  1. @override
void printUsage()
override

Prints the usage information for this command.

This is called internally by run and can be overridden by subclasses to control how output is displayed or integrate with a logging system.

Implementation

@override
void printUsage() => console.info(
  '$description\n\n'
  'Usage: $invocation\n\n'
  '--check    Exit with code 1 if the catalog or sorting would change a '
  'pubspec,\n'
  '           without changing anything or getting dependencies. For CI.\n\n'
  'Every other option is passed to "dart pub get". Run "dart pub get '
  '--help" to see them.',
);