wasParsed method

bool wasParsed(
  1. String name

Returns true if the option with name was parsed from an actual argument.

Returns false if it wasn't provided and the default value or no default value would be used instead.


bool wasParsed(String name) {
  var option = _parser.options[name];
  if (option == null) {
    throw ArgumentError('Could not find an option named "$name".');

  return _parsed.containsKey(name);