virsh: Remove uncommon redundant descriptions of virsh commands

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>
This commit is contained in:
Peter Krempa 2024-03-01 15:02:07 +01:00
parent 3b0b43b485
commit 21f64f2acd
2 changed files with 5 additions and 19 deletions

View 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}
};

View 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}
};