summaryrefslogtreecommitdiffstats
path: root/qemu-io.c
diff options
context:
space:
mode:
authorEric Blake2017-08-03 18:33:53 +0200
committerPaolo Bonzini2017-08-08 17:28:53 +0200
commitf5048cb7517348a20ba202e435e1006a8f5001cf (patch)
tree43c38ad8c01bdcd8d61302d02ed052eba0324850 /qemu-io.c
parentqga: Give more --version information (diff)
downloadqemu-f5048cb7517348a20ba202e435e1006a8f5001cf.tar.gz
qemu-f5048cb7517348a20ba202e435e1006a8f5001cf.tar.xz
qemu-f5048cb7517348a20ba202e435e1006a8f5001cf.zip
maint: Include bug-reporting info in --help output
These days, many programs are including a bug-reporting address, or better yet, a link to the project web site, at the tail of their --help output. However, we were not very consistent at doing so: only qemu-nbd and qemu-qa mentioned anything, with the latter pointing to an individual person instead of the project. Add a new #define that sets up a uniform string, mentioning both bug reporting instructions and overall project details, and which a downstream vendor could tweak if they want bugs to go to a downstream database. Then use it in all of our binaries which have --help output. The canned text intentionally references http:// instead of https:// because our https website currently causes certificate errors in some browsers. That can be tweaked later once we have resolved the web site issued. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20170803163353.19558-5-eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-io.c')
-rw-r--r--qemu-io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/qemu-io.c b/qemu-io.c
index ec175630a6..265445ad89 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -262,8 +262,9 @@ static void usage(const char *name)
" -h, --help display this help and exit\n"
" -V, --version output version information and exit\n"
"\n"
-"See '%s -c help' for information on available commands."
-"\n",
+"See '%s -c help' for information on available commands.\n"
+"\n"
+QEMU_HELP_BOTTOM "\n",
name, name);
}