Skip to content

Commit

Permalink
fix: return code
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Dec 9, 2023
1 parent 8e3e170 commit bb74408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ int main(int argc, char** argv)
std::unordered_map<std::string, std::string> options;
std::unordered_map<std::string, bool> flags;
if (!parse_param(argc, argv, options, flags)) {
return 0;
return 1;
}

MaaToolKitInit();
Expand Down Expand Up @@ -134,7 +134,7 @@ int main(int argc, char** argv)
"refer to the log."
<< std::endl;
mpause();
return -1;
return 1;
}

CustomActionRegistrar action_registerar;
Expand Down

0 comments on commit bb74408

Please sign in to comment.