Fix arguments behavior & better help
My hope is, these changes will support plasma-desktop#140.
treeview: Fix behaviour of selectMenuEntry
- Previously, it would fail to search a menu for matching menu entries, meaning the app's second positional argument never worked.
main: Improve help for positional arguments
-
This makes usage much more obvious without having to look at the code:
Usage: /home/oliver/kde/usr/bin/kmenuedit [options] [menu] [entry] ... Arguments: menu Menu to select, e.g. "Education/Mathematics" entry Entry to select, e.g. "org.kde.dolphin.desktop"
i.e., you no longer have to guess what format an entry should be!
Test with:
~/kde/usr/bin/kmenuedit "System" "org.kde.dolphin.desktop"
~/kde/usr/bin/kmenuedit "System/ScreenSavers"