Commit cbab4f08 authored by David Edmundson's avatar David Edmundson

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);
QCoreApplication::setApplicationName(QStringLiteral("kdeinhibit"));
QCommandLineParser parser;
parser.setOptionsAfterPositionalArgumentsMode(QCommandLineParser::ParseAsPositionalArguments);
parser.setApplicationDescription(i18n("Inhibit various desktop functions whilst a command runs"));
QCommandLineOption powerOption(QStringLiteral("power"), i18n("Inhibit power management"));
......
Markdown is supported
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