aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-25 18:50:08 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-25 18:50:08 (GMT)
commit561bd5febb2183b854733b5af5335bbd89b00e8e (patch)
tree535c69c64ec3a7e7cb13bb4fcabc4ea6995a9429
parent59afa3115e9194fdd828063957961f14acff614a (diff)
printUsage when we use unknow argument
-rw-r--r--src/akonadictl/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/akonadictl/main.cpp b/src/akonadictl/main.cpp
index 9d72bac..685732f 100644
--- a/src/akonadictl/main.cpp
+++ b/src/akonadictl/main.cpp
@@ -232,6 +232,9 @@ int main(int argc, char **argv)
runJanitor(QStringLiteral("vacuum"));
} else if (command == QLatin1String("fsck")) {
runJanitor(QStringLiteral("check"));
+ } else {
+ app.printUsage();
+ return -1;
}
return 0;
}