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:
parent
df35768d06
commit
a1f5e64456
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue