removeArg method

bool removeArg(
  1. String name
)

Removes the argument if present. Otherwise does nothing.

Returns true if the argument was present and removed. False otherwise.

Implementation

bool removeArg(String name) {
  if (args.containsKey(name)) {
    args.remove(name);
    return true;
  } else
    return false;
}