Bug 427415

Summary: --menu, --radiolist, and --checklist show incorrect usage instructions
Product: [Applications] kdialog Reporter: Tristan Miller <psychonaut>
Component: generalAssignee: Brad Hards <bradh>
Status: RESOLVED FIXED    
Severity: normal CC: bradh
Priority: NOR    
Version First Reported In: 20.08   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tristan Miller 2020-10-07 09:17:08 UTC
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] ...
Comment 1 Tristan Miller 2020-10-07 09:25:14 UTC
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).
Comment 2 Harald Sitter 2020-10-12 14:04:34 UTC
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