checkArguments static method

dynamic checkArguments(
  1. List<String> arguments,
  2. String usage
)

Checks that a command has arguments.

Implementation

static checkArguments(List<String> arguments, String usage) {
  if (arguments.isEmpty) {
    MetroConsole.writeInBlack(usage);
    exit(1);
  }
}