mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
tests: qemu-boot: Error if extra command line arguments are given.
This commit is contained in:
@@ -147,6 +147,12 @@ main (int argc, char *argv[])
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (optind != argc) {
|
||||
fprintf (stderr, "%s: extra arguments found on the command line\n",
|
||||
program_name);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Calculate the number of threads to use. */
|
||||
if (P > 0)
|
||||
P = MIN (n, P);
|
||||
|
||||
Reference in New Issue
Block a user