Move noisy metadata info into help section

This commit is contained in:
Imbus 2026-02-07 17:36:29 +01:00
parent c67c68615a
commit 3bfbfd46fa

View file

@ -195,11 +195,6 @@ static const struct option longopts[] = {
int main(int argc, char *argv[]) {
printf("%s %s, Rev. %s\n", basename(argv[0]), VERSION, GITREV);
fprintf(stdout, copyright, CR_YEAR);
#ifdef BLDDATE
printf("Build date: %s\n", BLDDATE);
#endif
printf("\n");
/* Line buffering, system allocated */
setvbuf(stdout, NULL, _IOLBF, 0);
@ -220,6 +215,12 @@ int main(int argc, char *argv[]) {
case 'n': --ask_permission; continue;
case 'V': exit(EXIT_SUCCESS);
}
printf("In honor of SwePwnage - the OG disk destroyer\n");
fprintf(stdout, copyright, CR_YEAR);
#ifdef BLDDATE
printf("Build date: %s\n", BLDDATE);
#endif
printf("\n");
printf("%s\n", help);
exit(EXIT_SUCCESS);
}
@ -242,7 +243,7 @@ int main(int argc, char *argv[]) {
}
if (NULL == wjob.dev_name) {
printf("Device required...\n");
printf("You need to specify a device.\n");
exit(EXIT_FAILURE);
}