}
}
}
}
ParsedCommandLine commandLine = commandLineParser.parse(remainingPaths.subList(1, remainingPaths.size()));
for (Map.Entry<String, JavaMethod<Task, ?>> entry : options.entrySet()) {
if (commandLine.hasOption(entry.getKey())) {
for (Task task : tasks) {
entry.getValue().invoke(task, true);
}
}
}
remainingPaths = commandLine.getExtraArguments();
matches.putAll(selector.getTaskName(), tasks);
}
return matches;