Re: [Qemu-devel] [PATCH v3] qemu-img: Improve error messages

2014-04-22 Thread Kevin Wolf
Am 22.04.2014 um 07:36 hat Fam Zheng geschrieben: > Previously, when there is a user error in argv parsing, qemu-img prints > help text and exits. > > Add an error_exit function to print a helpful error message and a hint > to run 'qemu-img --help' for more information. > > As a bonus, "qemu-img

[Qemu-devel] [PATCH v3] qemu-img: Improve error messages

2014-04-21 Thread Fam Zheng
Previously, when there is a user error in argv parsing, qemu-img prints help text and exits. Add an error_exit function to print a helpful error message and a hint to run 'qemu-img --help' for more information. As a bonus, "qemu-img --help" now has a more reasonable exit code 0. In the future t