Skip to content

Commit

Permalink
Fixed arrangement for parameter checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Oct 28, 2024
1 parent 5e1f28d commit 1ecdddf
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Zhivo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,16 @@ auto main(int argc, char** argv) -> int {
printBanner(argParse);
return 1;
}
else if(argParse.hasParameter("r")) {

if(argParse.hasParameter("t"))
Runtime::setTestMode(true);

if(argParse.hasParameter("r")) {
Runtime::repl();
return 1;
}

if(argc > 1) {
if(argParse.hasParameter("t"))
Runtime::setTestMode(true);

else if(argc > 1)
return interpreter(argParse.getInputFiles());
}

printBanner(argParse);
return 1;
Expand Down

0 comments on commit 1ecdddf

Please sign in to comment.