Move noisy metadata info into help section
This commit is contained in:
parent
c67c68615a
commit
3bfbfd46fa
1 changed files with 7 additions and 6 deletions
13
writeimg.c
13
writeimg.c
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue