When called with the wrong number of arguments, --menu issues incorrect usage instructions: Syntax: --menu text [tag item] [tag item] ... Since this dialog type requires at least one tag and item, the instructions should actually be as follows: Syntax: --menu text tag item [tag item] ...
A similar problem exists with the usage instructions for --radiolist and with --checklist (which is also missing the ellipsis to indicate that last set of arguments may be repeated).
Git commit 422179c34c10ba3e6ebd91b1855aaa3451c674cc by Harald Sitter, on behalf of Tristan Miller. Committed on 12/10/2020 at 14:04. Pushed by sitter into branch 'master'. Fix --menu, --checklist, and --radiolist usage instructions M +6 -6 src/kdialog.cpp https://invent.kde.org/utilities/kdialog/commit/422179c34c10ba3e6ebd91b1855aaa3451c674cc