Commit cbab4f08 authored by David Edmundson's avatar David Edmundson
Browse files

Ignore options after positional arguments

i.e `kde-inhibit ls --help`

should run "ls --help" not provide the help for kdeinhibit.

BUG: 426896
parent ede4ba5c
......@@ -32,7 +32,7 @@ int main(int argc, char **argv)
QCoreApplication app(argc, argv);
QCommandLineParser parser;
parser.setApplicationDescription(i18n("Inhibit various desktop functions whilst a command runs"));
QCommandLineOption powerOption(QStringLiteral("power"), i18n("Inhibit power management"));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment