isCliOptNameValid method

bool isCliOptNameValid([
  1. CliOptStopMode stopMode = CliOptStopMode.none
])

Checks whether the string can be treated as an option name

Implementation

bool isCliOptNameValid([CliOptStopMode stopMode = CliOptStopMode.none]) =>
    ((stopMode == CliOptStopMode.none) && _isValidRE.hasMatch(this));