existsOption method

bool existsOption(
  1. String name
)

The existsOption method is used to check if the option exists in the controller or not.

Implementation

bool existsOption(String name) {
  for (var option in options) {
    if (option.name == name || option.shortName == name) {
      return option.existsInArgs;
    }
  }
  return false;
}