test-tool: Give an error if there are extra arguments on the command line.

This commit is contained in:
Richard W.M. Jones
2013-02-28 14:54:24 +00:00
parent 3f1e7f1078
commit d01ac17559

View File

@@ -158,6 +158,11 @@ main (int argc, char *argv[])
}
}
if (optind < argc) {
fprintf (stderr, _("libguestfs-test-tool: extra arguments on the command line\n"));
exit (EXIT_FAILURE);
}
/* Everyone ignores the documentation, so ... */
printf (" ************************************************************\n"
" * IMPORTANT NOTICE\n"