]> Git Repo - qemu.git/commitdiff
qemu-option: Pull out "Supported options" print
authorMax Reitz <[email protected]>
Wed, 9 May 2018 21:00:19 +0000 (23:00 +0200)
committerMax Reitz <[email protected]>
Mon, 11 Jun 2018 14:18:45 +0000 (16:18 +0200)
It really is up to the caller to decide what this list of options means.

Signed-off-by: Max Reitz <[email protected]>
Reviewed-by: John Snow <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-id: 20180509210023[email protected]
Signed-off-by: Max Reitz <[email protected]>
qemu-img.c
util/qemu-option.c

index df3ec5b7fef380d5a1f87d2a067c3d6749791a4d..52008c564743b48e506be617e7ab9c202b37e798 100644 (file)
@@ -260,6 +260,7 @@ static int print_block_option_help(const char *filename, const char *fmt)
         create_opts = qemu_opts_append(create_opts, proto_drv->create_opts);
     }
 
+    printf("Supported options:\n");
     qemu_opts_print_help(create_opts);
     qemu_opts_free(create_opts);
     return 0;
index 58d1c238935eeb6aec991d1d0ca4f1ecce8a55f2..ba44a0895ca3200718c0f2cb29596b9a070e640f 100644 (file)
@@ -220,7 +220,6 @@ void qemu_opts_print_help(QemuOptsList *list)
 
     assert(list);
     desc = list->desc;
-    printf("Supported options:\n");
     while (desc && desc->name) {
         printf("%-16s %s\n", desc->name,
                desc->help ? desc->help : "No description available");
This page took 0.026047 seconds and 4 git commands to generate.