From: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx> Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx> --- tools/virsh-domain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 59e3d8d..cb2678b 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -297,11 +297,13 @@ static const vshCmdOptDef opts_attach_disk[] = { }, {.name = "shareable", .type = VSH_OT_ALIAS, - .help = "mode=shareable" + .help = "mode=shareable", + .exclude_option = "--mode" }, {.name = "mode", .type = VSH_OT_STRING, - .help = N_("mode of device reading and writing") + .help = N_("mode of device reading and writing"), + .exclude_option = "--shareable" }, {.name = "sourcetype", .type = VSH_OT_STRING, -- 1.8.2.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list