mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
help printed neutral
This commit is contained in:
parent
bdac4d133e
commit
bf52ec10da
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user