1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Print error and return if given invalid command-line arg

This is helpful to know if the user either spelled an arg wrong, or
spelled it right but nothing is happening.
This commit is contained in:
Misa 2020-08-02 21:30:08 -07:00 committed by Ethan Lee
parent 8af37bc693
commit 30123e700d

View file

@ -134,6 +134,11 @@ int main(int argc, char *argv[])
}
#undef ARG_INNER
#undef ARG
else
{
printf("Error: invalid option: %s\n", argv[i]);
return 1;
}
}
if(!FILESYSTEM_init(argv[0], baseDir, assetsPath))