mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
8af37bc693
commit
30123e700d
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue