We have a macro that does exactly what is done via full
enumeration.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
tools/virsh-domain.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index a105268..a09cdec 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -8551,11 +8551,7 @@ static const vshCmdInfo info_perf[] = {
};
static const vshCmdOptDef opts_perf[] = {
- {.name = "domain",
- .type = VSH_OT_DATA,
- .flags = VSH_OFLAG_REQ,
- .help = N_("domain name, id or uuid")
- },
+ VIRSH_COMMON_OPT_DOMAIN_FULL,
{.name = "enable",
.type = VSH_OT_STRING,
.help = N_("perf events which will be enabled")
--
2.7.3