From 7249f0b41ecbc91cced598ffe612f23bf3f23fac Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 30 Nov 2016 15:40:30 +0100 Subject: [PATCH] Show help upon error --- cli/kdeconnect-cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))) {