checkArgFunc method

bool checkArgFunc(
  1. String command,
  2. String option
)

Check the command has a argument

Implementation

bool checkArgFunc(String command, String option) {
  if (option == null) {
    logger.error('$command option requires a parameter');
    return false;
  }
  return true;
}