Get the flag
bool isSet(String name) { var opt = findCliOptByName(name); if (opt == null) { return false; } if (!(opt.optDef.isFlag)) { return false; } return opt.fullName.isCliOptPositive(); }