mojira.dev
MC-136217

Syntax help for commands that can either have a literal or an argument at the same position after a common prefix always assumes an argument (and not the literal) was supplied

To reproduce, type in /forceload remove all and observe that the syntax help thinks all is the <from> argument.

For a 1.13 example, using /teleport's two syntaxes /teleport <targets> <location> facing entity <facingEntity> [<facingAnchor>] and /teleport <targets> <location> [<rotation>], type in /tp @e 0 0 0 facing and observe that it thinks facing is the [<rotation>] argument.

See attached screenshots.

Attachments

Comments 2

Can confirm in 20w51a.

Can confirm in 21w05b.

[Mod] redstonehelper

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1, 1.15.1, 20w51a, 21w05b, 24w38a

Retrieved