test-tool: Don't print banner when using --help, -V, etc options (RHBZ#879416).

This commit is contained in:
Richard W.M. Jones
2012-11-23 14:50:54 +00:00
parent 2272cccfd4
commit dd4038c8a4

View File

@@ -104,17 +104,6 @@ main (int argc, char *argv[])
struct guestfs_version *vers;
char *p;
/* Everyone ignores the documentation, so ... */
printf (" ************************************************************\n"
" * IMPORTANT NOTICE\n"
" *\n"
" * When reporting bugs, include the COMPLETE, UNEDITED\n"
" * output below in your bug report.\n"
" *\n"
" ************************************************************\n"
);
sleep (3);
/* Create the handle. */
g = guestfs_create ();
if (g == NULL) {
@@ -165,6 +154,7 @@ main (int argc, char *argv[])
case '?':
usage ();
guestfs_set_verbose (g, 0);
exit (EXIT_SUCCESS);
default:
@@ -175,6 +165,17 @@ main (int argc, char *argv[])
}
}
/* Everyone ignores the documentation, so ... */
printf (" ************************************************************\n"
" * IMPORTANT NOTICE\n"
" *\n"
" * When reporting bugs, include the COMPLETE, UNEDITED\n"
" * output below in your bug report.\n"
" *\n"
" ************************************************************\n"
);
sleep (3);
make_files ();
printf ("===== Test starts here =====\n");