]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Remove uncommon redundant descriptions of virsh commands
authorPeter Krempa <pkrempa@redhat.com>
Fri, 1 Mar 2024 14:02:07 +0000 (15:02 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 13 Mar 2024 14:02:52 +0000 (15:02 +0100)
Some description of virsh commands referenced itself in a multi-line
example of usage, which is pointless as virsh help already shows how to
use the command:

     .data = N_("Get or set the current memory parameters for a guest"
                " domain.\n"
                "    To get the memory parameters use following command: \n\n"
                "    virsh # memtune <domain>")

Change it to just state what the command does and leave the example for
the help printer.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c
tools/virsh-host.c

index c134208fd4d9b8e94300966d740daef00ff37f21..ef750bec2f941567cecc10c1f75b61eef9a3ae32 100644 (file)
@@ -1528,10 +1528,7 @@ static const vshCmdInfo info_blkiotune[] = {
      .data = N_("Get or set blkio parameters")
     },
     {.name = "desc",
-     .data = N_("Get or set the current blkio parameters for a guest"
-                " domain.\n"
-                "    To get the blkio parameters use following command: \n\n"
-                "    virsh # blkiotune <domain>")
+     .data = N_("Get or set the current blkio parameters for a guest domain.")
     },
     {.name = NULL}
 };
@@ -9238,10 +9235,7 @@ static const vshCmdInfo info_memtune[] = {
      .data = N_("Get or set memory parameters")
     },
     {.name = "desc",
-     .data = N_("Get or set the current memory parameters for a guest"
-                " domain.\n"
-                "    To get the memory parameters use following command: \n\n"
-                "    virsh # memtune <domain>")
+     .data = N_("Get or set the current memory parameters for a guest domain.")
     },
     {.name = NULL}
 };
@@ -9413,10 +9407,7 @@ static const vshCmdInfo info_perf[] = {
         .data = N_("Get or set perf event")
     },
     {.name = "desc",
-        .data = N_("Get or set the current perf events for a guest"
-                   " domain.\n"
-                   "    To get the perf events list use following command: \n\n"
-                   "    virsh # perf <domain>")
+        .data = N_("Get or set the current perf events for a guest domain.")
     },
     {.name = NULL}
 };
@@ -9545,10 +9536,7 @@ static const vshCmdInfo info_numatune[] = {
      .data = N_("Get or set numa parameters")
     },
     {.name = "desc",
-     .data = N_("Get or set the current numa parameters for a guest"
-                " domain.\n"
-                "    To get the numa parameters use following command: \n\n"
-                "    virsh # numatune <domain>")
+     .data = N_("Get or set the current numa parameters for a guest domain.")
     },
     {.name = NULL}
 };
index 90ff46c5c4fa2bd4ce793a8f1a9c5177deb26f0b..87443220bd5519bdc66479076736432b0e9c4f7d 100644 (file)
@@ -1505,9 +1505,7 @@ cmdVersion(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED)
 
 static const vshCmdInfo info_node_memory_tune[] = {
     {"help", N_("Get or set node memory parameters")},
-    {"desc", N_("Get or set node memory parameters\n"
-                "    To get the memory parameters, use following command: \n\n"
-                "    virsh # node-memory-tune")},
+    {"desc", N_("Get or set node memory parameters")},
     {NULL, NULL}
 };