execute the command /help publish only shows that you can type in if cheats should be enabled and in which gamemode new players should join the world (/publish [<allowCommands>] [<gamemode>]) but it's also possible to type in a port after that (must be /publish [<allowCommands>] [<gamemode>] [<port>] or something like this)
Linked issues
is duplicated by 1
Comments 2
Now i'm confused. I tried it for other commands and for example "/help attribute" shows 3 more arguments, for "/help schedule" one suggestion is /schedule function <function> <time> [append|replace](4 more arguments) or for "/help execute if" there are many suggestions with more than 2 more arguments.
But for the publish command it‘s true that /help always shows two more arguments because when I type in "/help publish true" or "/help publish false" the command shows [<port>] as third argument.
This is not unique to publish, /help always only shows two arguments further than the ones you provided