Explorar el Código

Small fix to CLI module.

Adam Ierymenko hace 12 años
padre
commit
15375ef6b9
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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) {