Skip to content

Commit 5721f1c

Browse files
committed
Merge pull request open-source-parsers#366 from ya1gaurav/patch-30
parseCommandLine also throws
2 parents 9942f6a + 6c14548 commit 5721f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsontestrunner/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,12 @@ static int runTest(Options const& opts)
310310
}
311311
int main(int argc, const char* argv[]) {
312312
Options opts;
313+
try {
313314
int exitCode = parseCommandLine(argc, argv, &opts);
314315
if (exitCode != 0) {
315316
printf("Failed to parse command-line.");
316317
return exitCode;
317318
}
318-
try {
319319
return runTest(opts);
320320
}
321321
catch (const std::exception& e) {

0 commit comments

Comments
 (0)