diff options
author | Fam Zheng <famz@redhat.com> | 2014-04-22 13:36:11 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-04-22 13:47:46 +0200 |
commit | ac1307abfe63ac93a9289e773116bb0de07c335b (patch) | |
tree | b1799b7ef32311bb417405bfe444b15735ad383b /bt-host.c | |
parent | 90d9d30152674677aa7b810cf7debe01dc2780f6 (diff) |
qemu-img: Improve error messages
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 <cmd> --help" now has a more reasonable exit code
0.
In the future the help text should be split by sub command, and only
print the information for the specified command.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'bt-host.c')
0 files changed, 0 insertions, 0 deletions