KCmdLineArgs isSet default values

Joseph Wenninger jowenn at kde.org
Fri Sep 18 18:08:56 BST 2009


Hi!

I found some strange behaviour, it's not what I would have needed, but I
still think it is a bug.

If an option is defines as
KCmdLineOptions options;
  options.add("s");
  options.add("start <name>", ki18n("Start Kate with a given
session"),"ANON");

I think even if --start is not entered at the command line, isSet("start")
is true and for the argument ANON should be returned. Now isSet("start")
return false.

I'm attaching a patch which fixes an imho bug with the default value
handling.

Regards
Joseph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmdlineargs_default_isset.patch
Type: text/x-patch
Size: 585 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090918/1128bba9/attachment.bin>


More information about the kde-core-devel mailing list