mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user