🐛 Fix issues with intermediary command help
This commit is contained in:
parent
22993a46d7
commit
f7bc31df27
1 changed files with 8 additions and 3 deletions
|
|
@ -203,9 +203,14 @@ public final class CommandHelpHandler<C> {
|
|||
outer: while (head != null) {
|
||||
++index;
|
||||
traversedNodes.add(head.getValue());
|
||||
if (head.isLeaf()) {
|
||||
|
||||
if (head.getValue() != null && head.getValue().getOwningCommand() != null) {
|
||||
if (head.isLeaf() || index == queryFragments.length) {
|
||||
return new VerboseHelpTopic<>(head.getValue().getOwningCommand());
|
||||
} else if (head.getChildren().size() == 1) {
|
||||
}
|
||||
}
|
||||
|
||||
if (head.getChildren().size() == 1) {
|
||||
head = head.getChildren().get(0);
|
||||
} else {
|
||||
if (index < queryFragments.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue