Accept single line command options like we used to do
ClosedPublic

Authored by aacid on Mar 26 2017, 4:27 PM.

Details

Summary

Including this own repository

./client/kfmclient.cpp:258:

that uses a single dash instead of two

Diff Detail

Repository
R226 Konqueror
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
aacid created this revision.Mar 26 2017, 4:27 PM
dfaure accepted this revision.Mar 26 2017, 4:49 PM

I'd rather we fix kfmclient.cpp to add the missing dash, but OK, if we care for command-line compatibility with KDE4 era then we should use ParseAsLongOptions.... everywhere...

This revision is now accepted and ready to land.Mar 26 2017, 4:49 PM
aacid added a comment.Mar 26 2017, 6:11 PM
In D5184#97693, @dfaure wrote:

I'd rather we fix kfmclient.cpp to add the missing dash, but OK, if we care for command-line compatibility with KDE4 era then we should use ParseAsLongOptions.... everywhere...

Yes, we should care, and more over in "famous" stuff that is probably called from scripts and stuff.

This revision was automatically updated to reflect the committed changes.