splitCliOptNameValue method

List<String> splitCliOptNameValue()

Breaks the string into an option name and value (without unbundling)

Implementation

List<String> splitCliOptNameValue() {
  final breakPos = indexOf('=');

  if (breakPos < 0) {
    return [this, ''];
  }

  return [substring(0, breakPos), substring(breakPos + 1)];
}