matches method

bool matches(
  1. String arg
)

Check if this switch matches the given argument Matches by name or any flag alias

Implementation

bool matches(String arg) => aliases.contains(arg);