[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH 3/7] qemu-option: Pull out "Supported options" print
From: |
Max Reitz |
Subject: |
[Qemu-block] [PATCH 3/7] qemu-option: Pull out "Supported options" print |
Date: |
Sat, 21 Apr 2018 18:54:19 +0200 |
It really is up to the caller to decide what this list of options means.
Signed-off-by: Max Reitz <address@hidden>
---
qemu-img.c | 1 +
util/qemu-option.c | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-img.c b/qemu-img.c
index 375fe852e0..6dd8e95bb2 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -261,6 +261,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 d0756fda58..95e6cf4e49 100644
--- a/util/qemu-option.c
+++ b/util/qemu-option.c
@@ -218,7 +218,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");
--
2.14.3
- [Qemu-block] [PATCH 0/7] qemu-img: Improve option help for amend, Max Reitz, 2018/04/21
- [Qemu-block] [PATCH 1/7] qemu-img: Amendment support implies create_opts, Max Reitz, 2018/04/21
- [Qemu-block] [PATCH 3/7] qemu-option: Pull out "Supported options" print,
Max Reitz <=
- [Qemu-block] [PATCH 2/7] block: Add Error parameter to bdrv_amend_options, Max Reitz, 2018/04/21
- [Qemu-block] [PATCH 5/7] qemu-img: Recognize no creation support in -o help, Max Reitz, 2018/04/21
- [Qemu-block] [PATCH 4/7] qemu-img: Add print_amend_option_help(), Max Reitz, 2018/04/21
- [Qemu-block] [PATCH 6/7] iotests: Test help option for unsupporting formats, Max Reitz, 2018/04/21
- [Qemu-block] [PATCH 7/7] iotests: Rework 113, Max Reitz, 2018/04/21