mirror of
https://github.com/yquake2/pakextract.git
synced 2025-02-17 17:11:37 +00:00
make sure -o is followed by path, not other option
This commit is contained in:
parent
c4f79aee0e
commit
60c556b7b8
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ main(int argc, char *argv[])
|
|||
else if(strcmp(arg, "-o") == 0)
|
||||
{
|
||||
++i; // go to next argument (should be out_dir)
|
||||
if(i == argc) // no further argument?
|
||||
if(i == argc || argv[i][0] == '-') // no further argument/next argument option?
|
||||
{
|
||||
fprintf(stderr, "!! -o must be followed by output dir !!\n");
|
||||
printUsage(argv[0]);
|
||||
|
|
Loading…
Reference in a new issue