]> xenbits.xensource.com Git - libvirt.git/commit
vsh: Filter --options
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 29 Dec 2017 10:25:38 +0000 (11:25 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Jan 2018 17:53:04 +0000 (18:53 +0100)
commitcc005fe5a896aa28865f76457bebee90be7a549e
tree9ce50181f3870d0384d9cad7bb5bbc93baceab24
parentd4e63aff5d0e5b1a41518aa44d6eb11c5ec72450
vsh: Filter --options

Similarly to the previous commit, once we've presented an
--option for a command to the user it makes no sense to offer it
again. Therefore, we can prune all already specified options. For
instance, after this patch:

  virsh # migrate --verbose <TAB><TAB>

will no longer offer --verbose option.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/vsh.c