From: Max Reitz Date: Wed, 9 May 2018 21:00:19 +0000 (+0200) Subject: qemu-option: Pull out "Supported options" print X-Git-Tag: v3.0.0-rc0~99^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f3fb00136aaec74df8132492d1f48b8e9840258;p=thirdparty%2Fqemu.git qemu-option: Pull out "Supported options" print It really is up to the caller to decide what this list of options means. Signed-off-by: Max Reitz Reviewed-by: John Snow Reviewed-by: Eric Blake Message-id: 20180509210023.20283-4-mreitz@redhat.com Signed-off-by: Max Reitz --- diff --git a/qemu-img.c b/qemu-img.c index df3ec5b7fef..52008c56474 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -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; diff --git a/util/qemu-option.c b/util/qemu-option.c index 58d1c238935..ba44a0895ca 100644 --- a/util/qemu-option.c +++ b/util/qemu-option.c @@ -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");