mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
handle missing classpath or jar file name gracefully
This commit is contained in:
parent
fa5d76b43e
commit
2abc4e28a5
@ -172,9 +172,11 @@ main(int ac, const char** av)
|
||||
if (strcmp(av[i], "-cp") == 0
|
||||
or strcmp(av[i], "-classpath") == 0)
|
||||
{
|
||||
if (i + 1 == ac) usageAndExit(av[0]);
|
||||
classpath = av[++i];
|
||||
} else if (strcmp(av[i], "-jar") == 0)
|
||||
{
|
||||
if (i + 1 == ac) usageAndExit(av[0]);
|
||||
jar = av[++i];
|
||||
} else if (strncmp(av[i], "-X", 2) == 0
|
||||
or strncmp(av[i], "-D", 2) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user