Bug 412619

Summary: kwriteconfig cannot write "-1" as value
Product: [Frameworks and Libraries] frameworks-kconfig Reporter: shalva97 <shalva258>
Component: generalAssignee: Matthew Dawson <matthew>
Status: RESOLVED NOT A BUG    
Severity: normal CC: a.samirh78, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.62.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description shalva97 2019-10-04 21:02:18 UTC
SUMMARY

STEPS TO REPRODUCE
1. execute kwriteconfig5 --file $HOME/.config/plasmarc --group PlasmaToolTips --key Delay "-1"

OBSERVED RESULT
kwriteconfig5: Unknown option '1'

EXPECTED RESULT
-1 should be written as the value of Delay


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  5.3.1-arch1-1-ARCH / 5.16.5
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION

GUI settings can disable plasma tool tips by writing -1 as the value for Delay in PlasmaToolTips, but kwriteconfig5 can not
Comment 1 Ahmad Samir 2021-06-13 14:55:13 UTC
This is how some/most Shells behave, anything starting with '-' is considered as an option to the command being run (the same behaviour happens with grep and rm ...etc). To use that command line you have to use '--' to mark the end of the option names:
kwriteconfig5 --file $HOME/.config/plasmarc --group PlasmaToolTips --key Delay -- "-1"