Re: [Qemu-devel] [PATCH v2] qemu-img.c: add help for each command

2018-10-02 Thread Eric Blake
On 9/15/18 11:10 AM, John Arbuckle wrote: Add the ability for the user to display help for a certain command. Example: qemu-img create --help What is printed is all the options available to this command and an example. Signed-off-by: John Arbuckle --- v2 changes: Removed block of string compar

[Qemu-devel] [PATCH v2] qemu-img.c: add help for each command

2018-09-15 Thread John Arbuckle
Add the ability for the user to display help for a certain command. Example: qemu-img create --help What is printed is all the options available to this command and an example. Signed-off-by: John Arbuckle --- v2 changes: Removed block of string comparison code for each command. Added a help_fu