vl: Print -device help at most once

We print it once for each -device help.  Not helpful.  Stop after the
first one.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Markus Armbruster 2015-03-13 13:02:03 +01:00
parent 092b21aa7e
commit 8416abb3b0

2
vl.c
View File

@ -4049,7 +4049,7 @@ int main(int argc, char **argv, char **envp)
exit(1);
}
if (qemu_opts_foreach(qemu_find_opts("device"), device_help_func, NULL, 0)
if (qemu_opts_foreach(qemu_find_opts("device"), device_help_func, NULL, 1)
!= 0) {
exit(0);
}