options property

Iterable<String> options

Get the names of the available options as an Iterable.

This includes the options whose values were parsed or that have defaults. Options that weren't present and have no default will be omitted.


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

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

  return result;