Explorar o código

Small fix to CLI module.

Adam Ierymenko %!s(int64=12) %!d(string=hai) anos
pai
achega
15375ef6b9
Modificáronse 1 ficheiros con 5 adicións e 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) {