isSet method

bool isSet(
  1. String name
)

Get the flag

Implementation

bool isSet(String name) {
  var opt = findCliOptByName(name);

  if (opt == null) {
    return false;
  }

  if (!(opt.optDef.isFlag)) {
    return false;
  }

  return opt.fullName.isCliOptPositive();
}