[libvirt] [PATCH] virt-login-shell: clean up usage

Eric Blake eblake at redhat.com
Tue Dec 24 04:53:15 UTC 2013


I noticed a couple odd things in 'virt-login-shell --help' output.

* tools/virt-login-shell.c (usage): At most one option accepted,
drop trailing colon.

Signed-off-by: Eric Blake <eblake at redhat.com>
---

Pushing under the trivial rule.

 tools/virt-login-shell.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/virt-login-shell.c b/tools/virt-login-shell.c
index 758d1af..8b35e34 100644
--- a/tools/virt-login-shell.c
+++ b/tools/virt-login-shell.c
@@ -161,10 +161,10 @@ usage(void)
     fprintf(stdout,
             _("\n"
               "Usage:\n"
-              "  %s [options]\n\n"
+              "  %s [option]\n\n"
               "Options:\n"
-              "  -h | --help            Display program help:\n"
-              "  -V | --version         Display program version:\n"
+              "  -h | --help            Display program help\n"
+              "  -V | --version         Display program version\n"
               "\n"
               "libvirt login shell\n"),
             progname);
-- 
1.8.4.2




More information about the libvir-list mailing list