improve command line argument checking
PR: 1061
This commit is contained in:
parent
69488fa929
commit
88f62fb98a
1 changed files with 4 additions and 0 deletions
|
@ -387,11 +387,15 @@ int MAIN(int argc, char **argv)
|
|||
else if (strcmp(*argv,"-pre") == 0)
|
||||
{
|
||||
argc--; argv++;
|
||||
if (argc == 0)
|
||||
goto skip_arg_loop;
|
||||
sk_push(pre_cmds,*argv);
|
||||
}
|
||||
else if (strcmp(*argv,"-post") == 0)
|
||||
{
|
||||
argc--; argv++;
|
||||
if (argc == 0)
|
||||
goto skip_arg_loop;
|
||||
sk_push(post_cmds,*argv);
|
||||
}
|
||||
else if ((strncmp(*argv,"-h",2) == 0) ||
|
||||
|
|
Loading…
Reference in a new issue