From 15375ef6b9a0bf7ae2473a893816c4916d9ab7ba Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 8 Nov 2013 15:45:28 -0500 Subject: [PATCH] Small fix to CLI module. --- main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.cpp b/main.cpp index dce3f8c2b..b2d96628f 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) {