checkArguments static method

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

Checks that a command has arguments.

Implementation

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