Browse Source

Small fix to CLI module.

Adam Ierymenko 11 years ago
parent
commit
15375ef6b9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      main.cpp

+ 5 - 0
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) {