summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index dce3f8c2..b2d96628 100644
--- a/main.cpp
+++ b/main.cpp
@@ -149,6 +149,11 @@ static int main(int argc,char **argv)
}
}
+ if (!command.length()) {
+ printHelp(stdout,argv[0]);
+ return -1;
+ }
+
if (!authToken.length()) {
const char *home = getenv("HOME");
if (home) {