Re: [PATCH 01/23] qemu-img: pass current cmd info into command handlers

2024-02-20 Thread Daniel P . Berrangé
On Sat, Feb 10, 2024 at 12:22:22AM +0300, Michael Tokarev wrote: > In order to be able to give correct --help output, pass current cmd > information (img_cmd_t structure) to command handlers and to common > error reporting functions. After the change, in case of command-line > error, qemu-img will

[PATCH 01/23] qemu-img: pass current cmd info into command handlers

2024-02-09 Thread Michael Tokarev
In order to be able to give correct --help output, pass current cmd information (img_cmd_t structure) to command handlers and to common error reporting functions. After the change, in case of command-line error, qemu-img will now print: Try 'qemu-img create --help' for more information. Current