We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf19d99 commit 47c2a28Copy full SHA for 47c2a28
1 file changed
src/main/java/org/apache/commons/cli/Options.java
@@ -276,7 +276,7 @@ public List<String> getMatchingOptions(String opt)
276
final List<String> matchingOpts = new ArrayList<>();
277
278
// for a perfect match return the single option only
279
- if (longOpts.keySet().contains(opt))
+ if (longOpts.containsKey(opt))
280
{
281
return Collections.singletonList(opt);
282
}
0 commit comments