mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
test-tool: Give an error if there are extra arguments on the command line.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user