exit instead of returning false
This commit is contained in:
parent
a7622c03c4
commit
2807111dcc
1 changed files with 2 additions and 2 deletions
|
@ -107,13 +107,13 @@ bool gpt_params_parse(int argc, char** argv, gpt_params& params) {
|
|||
try {
|
||||
if (!gpt_params_parse_ex(argc, argv, params)) {
|
||||
gpt_print_usage(argc, argv, gpt_params());
|
||||
result = false;
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
catch (const std::invalid_argument& ex) {
|
||||
fprintf(stderr, ex.what());
|
||||
gpt_print_usage(argc, argv, gpt_params());
|
||||
result = false;
|
||||
exit(1);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue