diff --git a/cli/kdeconnect-cli.cpp b/cli/kdeconnect-cli.cpp index 1f93628c8..1acb72314 100644 --- a/cli/kdeconnect-cli.cpp +++ b/cli/kdeconnect-cli.cpp @@ -128,7 +128,7 @@ int main(int argc, char** argv) } if(device.isEmpty()) { QTextStream(stderr) << i18n("No device specified") << endl; - return 1; + parser.showHelp(1); } if(parser.isSet(QStringLiteral("share"))) {