containsOption abstract method

  1. @protected
bool containsOption(
  1. String name
)

Returns whether the set of parsed options includes the given name.

Implementations must define how option presence is detected.

Example:

if (containsOption('debug')) {
  print('Debug mode enabled.');
}

Implementation

@protected
bool containsOption(String name);