hasOptionWithKey method

bool hasOptionWithKey(
  1. String key
)

Checks if the parser contains an option with the given key.

Implementation

bool hasOptionWithKey(String key) {
  return options.entries.any((e) => e.key == key);
}