Fix always exit
This commit is contained in:
parent
144ff45830
commit
1a195e777c
1 changed files with 3 additions and 1 deletions
|
|
@ -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[])
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue