added arguments help
This commit is contained in:
parent
47c0fce20f
commit
fd976b20d8
|
@ -6,11 +6,10 @@
|
|||
|
||||
void check_input(int argc, char *argv[]){
|
||||
if (argc < 5) {
|
||||
//TODO: print help
|
||||
exit(0); //TODO: togliere
|
||||
printf("\033[92m<Help>\033[39m Arguments:\n1) number of collums\n2) number of rows\n3) player one token\n4) player two token\n");
|
||||
exit(EXIT_SUCCESS);
|
||||
} else if (argc > 5) {
|
||||
//TODO: print error
|
||||
exit(EXIT_FAILURE);
|
||||
errExitMsg("To many arguments");
|
||||
}
|
||||
|
||||
int collums = atoi(argv[1]);
|
||||
|
|
Loading…
Reference in New Issue