]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: undocument --shareable (--mode already covers it)
authorEric Blake <eblake@redhat.com>
Thu, 24 Oct 2013 07:15:56 +0000 (08:15 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 24 Oct 2013 10:17:42 +0000 (11:17 +0100)
commitf919cf691735535dedc66a2cae244350ebb6c5e5
tree1257ef650b9305ae638b2dc15c8ee4f3a49319e8
parent2b172a8effa712aee97a21a64d2d02060958f9b2
virsh: undocument --shareable (--mode already covers it)

Commit e962a57 added 'attach-disk --shareable', even though we
already had 'attach-disk --mode=shareable'.  Worse, if the user
types 'attach-disk --mode=readonly --shareable', we create
non-sensical XML.  The best solution is just to undocument the
duplicate spelling, by having it fall back to the preferred
spelling.

* tools/virsh-domain.c (cmdAttachDisk): Let alias handling fix our
mistake in exposing a second spelling for an existing option.
* tools/virsh.pod: Fix documentation.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh-domain.c
tools/virsh.pod