RepoSelections.parse constructor
Reads every optionNames option from args (--skip a,b,
--skip=a, repeatable) and resolves its names. Throws
RepoNameException.
Implementation
factory RepoSelections.parse(
List<String> args,
Iterable<String> optionNames,
RepoNames names,
) {
final wanted = optionNames.toSet();
final by = <String, Set<String>>{};
for (final (name, value) in _optionValues(args, wanted)) {
by.putIfAbsent(name, () => {}).addAll(names.resolve(value));
}
return RepoSelections(by);
}