1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

test-config: fix parsing of options

This commit is contained in:
Steffen Vogel 2019-03-31 22:14:03 +02:00
parent df35768d06
commit a1f5e64456

View file

@ -70,13 +70,13 @@ int main(int argc, char *argv[])
}
}
if (argc - optind < 2) {
if (argc - optind < 1) {
usage();
exit(EXIT_FAILURE);
}
try {
sn.parse(argv[argc - optind]);
sn.parse(argv[optind]);
if (check)
sn.check();