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