Skip to content

Commit

Permalink
fix: sub commands prefix duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
asforest committed Jun 7, 2022
1 parent dc49215 commit 6256d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/command/resolver/TreeCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class TreeCommand

for (subCommand in subCommandObjects.filter { !it.isAlias })
for (command in subCommand.subtree.commands)
functions += PrefixedCommandSignature(subCommand.field + " " + command.name, command)
functions += PrefixedCommandSignature(subCommand.field, command)

functions
}
Expand Down

0 comments on commit 6256d4a

Please sign in to comment.