diff --git a/cloud-core/src/main/java/cloud/commandframework/CommandTree.java b/cloud-core/src/main/java/cloud/commandframework/CommandTree.java index e0b225a2..02fcbaa8 100644 --- a/cloud-core/src/main/java/cloud/commandframework/CommandTree.java +++ b/cloud-core/src/main/java/cloud/commandframework/CommandTree.java @@ -729,7 +729,9 @@ public final class CommandTree { } final int size = node.children.size(); for (final Node> child : node.children) { - if (child.getValue() != null && !child.getValue().isRequired() && size > 1) { + if (child.getValue() != null + && !(child.getValue() instanceof StaticArgument) + && size > 1) { throw new AmbiguousNodeException( node.getValue(), child.getValue(),