hasHelpFlag static method

dynamic hasHelpFlag(
  1. bool hasHelpFlag,
  2. String usage
)

Checks if the help flag is set.

Implementation

static hasHelpFlag(bool hasHelpFlag, String usage) {
  if (hasHelpFlag) {
    MetroConsole.writeInBlack(usage);
    exit(0);
  }
}