Re: consistency of virsh help output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/10/2011 08:01 AM, Zdenek Styblik wrote:
[...]
Actually, I think these would be _("[<%s>]") (note the<> to signify the
meta-syntactic term). But I like the idea; this shortens the synopsis
form, while still leaving the usage form to explain the meta-syntactic
term.


Right, because '--%s' is mandatory. Should I re-post the patch, or...?

Thanks,
Z.


Should be fine.

Z.

--
Zdenek Styblik
Net/Linux admin
OS TurnovFree.net
email: stybla@xxxxxxxxxxxxxx
jabber: stybla@xxxxxxxxxxxxxxxxxxxxx
>From e3963c04b3e95eee570f4e870c7c44cf211148ad Mon Sep 17 00:00:00 2001
From: Zdenek Styblik <stybla@xxxxxxxxxxxxxx>
Date: Fri, 11 Feb 2011 12:25:39 +0100
Subject: [PATCH] Unify virsh help synopsis output
 Signed-off-by: Zdenek Styblik <stybla@xxxxxxxxxxxxxx>

---
 tools/virsh.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 6d9861f..9063365 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -10637,11 +10637,11 @@ vshCmddefHelp(vshControl *ctl, const char *cmdname)
                 case VSH_OT_INT:
                     /* xgettext:c-format */
                     fmt = ((opt->flag & VSH_OFLAG_REQ) ? "<%s>"
-                           : _("[--%s <number>]"));
+                           : _("[<%s>]"));
                     break;
                 case VSH_OT_STRING:
                     /* xgettext:c-format */
-                    fmt = _("[--%s <string>]");
+                    fmt = _("[<%s>]");
                     break;
                 case VSH_OT_DATA:
                     fmt = ((opt->flag & VSH_OFLAG_REQ) ? "<%s>" : "[<%s>]");
-- 
1.7.3.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]