toFullCliOptName method

String toFullCliOptName(
  1. bool isPositive
)

Prepends option name with prefix depending on isPositive

Implementation

String toFullCliOptName(bool isPositive) {
  switch (this[0]) {
    case '-':
    case '+':
      return this;
    default:
      return (isPositive ? '-' : '+') + this;
  }
}