help printed neutral

This commit is contained in:
Erik Frojdh 2020-09-09 11:06:47 +02:00
parent bdac4d133e
commit bf52ec10da

View File

@ -49,7 +49,6 @@ int main(int argc, char *argv[]) {
memset(helpMessage, 0, MAX_STR_LENGTH);
sprintf(
helpMessage,
"\n\n"
"Usage: %s [arguments]\n"
"Possible arguments are:\n"
"\t-v, --version : Software version\n"
@ -148,8 +147,10 @@ int main(int argc, char *argv[]) {
break;
case 'h':
printf("%s", helpMessage);
exit(EXIT_SUCCESS);
default:
LOG(logERROR, (helpMessage));
printf("\n%s", helpMessage);
exit(EXIT_FAILURE);
}
}