Fix always exit

This commit is contained in:
zawz 2020-11-14 17:32:09 +01:00
parent 144ff45830
commit 1a195e777c

View file

@ -23,19 +23,21 @@ void oneshot_opt_process(const char* arg0)
if(options['h']) if(options['h'])
{ {
print_help(arg0); print_help(arg0);
exit(0);
} }
else if(options["version"]) else if(options["version"])
{ {
printf("%s %s%s\n", arg0, VERSION_STRING, VERSION_SUFFIX); printf("%s %s%s\n", arg0, VERSION_STRING, VERSION_SUFFIX);
printf("%s\n", VERSION_SHA); printf("%s\n", VERSION_SHA);
exit(0);
} }
else if(options["help-commands"]) else if(options["help-commands"])
{ {
print_include_help(); print_include_help();
printf("\n\n"); printf("\n\n");
print_resolve_help(); print_resolve_help();
}
exit(0); exit(0);
}
} }
int main(int argc, char* argv[]) int main(int argc, char* argv[])