Fix always exit

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

View file

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