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 <mreitz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20180509210023.20283-4-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
d1402b5026
commit
7f3fb00136
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user