mirror of
https://github.com/mii443/qemu.git
synced 2025-08-28 18:09:35 +00:00
qemu-img: Print available options with -o ?
This patch adds a small help text to each of the options in the block drivers which can be displayed by using qemu-img create -f fmt -o ? Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
@ -347,3 +347,16 @@ void print_option_parameters(QEMUOptionParameter *list)
|
||||
list++;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Prints an overview of all available options
|
||||
*/
|
||||
void print_option_help(QEMUOptionParameter *list)
|
||||
{
|
||||
printf("Supported options:\n");
|
||||
while (list && list->name) {
|
||||
printf("%-16s %s\n", list->name,
|
||||
list->help ? list->help : "No description available");
|
||||
list++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user