getCliOptDefsLongNames method

List<String> getCliOptDefsLongNames({
  1. bool isNegative = false,
})

Get long names of all option definitions (positive or negative)

Implementation

List<String> getCliOptDefsLongNames({bool isNegative = false}) {
  final result = <String>[];

  for (final optDef in this) {
    result.addAll(isNegative ? optDef.negLongNames : optDef.longNames);
  }

  return result;
}