options property

Iterable<String> get options

The names of the available options.

Includes the options whose values were parsed or that have defaults. Options that weren't present and have no default are omitted.

Implementation

Iterable<String> get options {
  var result = _parsed.keys.toSet();

  // Include the options that have defaults.
  _parser.options.forEach((name, option) {
    if (option.defaultsTo != null) result.add(name);
  });

  return result;
}