fixed : cli : forgotten mandatory argument

This commit is contained in:
Yann Collet
2016-09-21 16:05:03 +02:00
parent 27b5ac666e
commit 714464f05d
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -434,6 +434,8 @@ int main(int argCount, const char* argv[])
filenameTable[filenameIdx++] = argument;
}
if (lastCommand) { DISPLAY("error : command must be followed by argument \n"); return 1; } /* forgotten argument */
/* Welcome message (if verbose) */
DISPLAYLEVEL(3, WELCOME_MESSAGE);