Skip to content

Commit

Permalink
Fixed: #563 - JCommander does not recognize command by alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarg committed Aug 20, 2023
1 parent c2f1915 commit a60a205
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/beust/jcommander/JCommander.java
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,9 @@ private boolean isOption(String passedArg) {
for (IKey key : commands.keySet()) {
if (matchArg(arg, key)) return true;
}
for (IKey key : aliasMap.keySet()) {
if (matchArg(arg, key)) return true;
}

return false;
}
Expand Down

0 comments on commit a60a205

Please sign in to comment.