Show help upon error

This commit is contained in:
Aleix Pol 2016-11-30 15:40:30 +01:00
parent eabdfc892b
commit 7249f0b41e

View file

@ -128,7 +128,7 @@ int main(int argc, char** argv)
} }
if(device.isEmpty()) { if(device.isEmpty()) {
QTextStream(stderr) << i18n("No device specified") << endl; QTextStream(stderr) << i18n("No device specified") << endl;
return 1; parser.showHelp(1);
} }
if(parser.isSet(QStringLiteral("share"))) { if(parser.isSet(QStringLiteral("share"))) {