getBool method
- String name
 
This function checks for a argument by name and will return the value of the boolean, or false if either it isn't a bool, or it was not passed as a argument.
Implementation
bool getBool(String name) {
  if (hasArg(name)) {
    if (getArg(name)!.getType() == ArgumentType.BOOL) {
      return getArg(name)!.getValue();
    } else
      return false;
  } else
    return false;
}