[Libguestfs] [PATCH] tools: improve reporting for option errors (RHBZ#1316041)

Richard W.M. Jones rjones at redhat.com
Thu May 5 13:00:19 UTC 2016


On Thu, May 05, 2016 at 02:32:46PM +0200, Pino Toscano wrote:
> Improve the error messages produced by C-based tools in case of issues
> with the command line options:
> - explicitly mention to use -a/-d (and -A/-D in virt-diff)
> - when extra arguments are found, mention the correct way to pass
>   options to certain command line switches (like --format)
> - in virt-inspector, give a cleaner error message when neither -i nor
>   any -m is specified
> 
> In all the cases, keep the extra notice to use 'TOOL --help' to get more
> help with it.

Looks good, ACK.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the Libguestfs mailing list