diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c index d71caed88..38a9324be 100644 --- a/test-tool/test-tool.c +++ b/test-tool/test-tool.c @@ -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"