]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: fix few typos on desc command
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 19 Jun 2012 09:05:31 +0000 (11:05 +0200)
committerCole Robinson <crobinso@redhat.com>
Sun, 12 Aug 2012 22:35:18 +0000 (18:35 -0400)
virsh help fix:
 - <--title> can also /get/ the title

virsh man page:
 - missing <domain-id>
 - <new_desc> should be <new-desc>
(cherry picked from commit 3dc733bb0134c1d026b48b8bdfd98db9751f6f3f)

tools/virsh.c
tools/virsh.pod

index 5183db09110674368fe4522f0c5ce01e67492a58..1828d19f2115a7c56b898ea27f73347229c433c1 100644 (file)
@@ -1155,7 +1155,7 @@ static const vshCmdOptDef opts_desc[] = {
     {"live", VSH_OT_BOOL, 0, N_("modify/get running state")},
     {"config", VSH_OT_BOOL, 0, N_("modify/get persistent configuration")},
     {"current", VSH_OT_BOOL, 0, N_("modify/get current state configuration")},
-    {"title", VSH_OT_BOOL, 0, N_("modify the title instead of description")},
+    {"title", VSH_OT_BOOL, 0, N_("modify/get the title instead of description")},
     {"edit", VSH_OT_BOOL, 0, N_("open an editor to modify the description")},
     {"new-desc", VSH_OT_ARGV, 0, N_("message")},
     {NULL, 0, 0, NULL}
index c6e0ff3c546b6326eca54fc99512b4b4f79284b1..468df1d7ef17ea0f80291e95d08ee522f200d812 100644 (file)
@@ -495,8 +495,9 @@ Define a domain from an XML <file>. The domain definition is registered
 but not started.  If domain is already running, the changes will take
 effect on the next boot.
 
-=item B<desc> [[I<--live>] [I<--config>] | [I<--current>]] [I<--title>]
-              [I<--edit>] [I<--new-desc> New description or title message]
+=item B<desc> I<domain-id> [[I<--live>] [I<--config>] |
+              [I<--current>]] [I<--title>] [I<--edit>] [I<--new-desc>
+              New description or title message]
 
 Show or modify description and title of a domain. These values are user
 fields that allow to store arbitrary textual data to allow easy
@@ -514,7 +515,7 @@ description or title should be opened and the contents saved back afterwards.
 
 Flag I<--title> selects operation on the title field instead of description.
 
-If neither of I<--edit> and I<--new_desc> are specified the note or description
+If neither of I<--edit> and I<--new-desc> are specified the note or description
 is displayed instead of being modified.
 
 =item B<destroy> I<domain-id> [I<--graceful>]