]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vshReadlineParse: Ignore vshReadlineOptionsGenerator for VSH_OT_INT options
authorLin Ma <morecache@gmail.com>
Fri, 11 Sep 2020 07:13:07 +0000 (15:13 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 14 Sep 2020 13:52:40 +0000 (15:52 +0200)
commitd9a320bf97be9ba1d9692d5490554a2a8d8495f0
tree82c4c926369509fe3cf1ac239d9e4cd386bb9864
parenteddd9932ee89bbc5087b71bf357a8bdcc7c06fc5
vshReadlineParse: Ignore vshReadlineOptionsGenerator for VSH_OT_INT options

Commit c7151b0 added the completion for VSH_OT_INT options, say '--cellno'
and '--pagesize', So we need to ignore VSH_OT_INT otherwise we get the
incorrect completion.

before:
 # virsh freepages --pagesize <TAB><TAB>
--all     --cellno  1GiB      2MiB      4KiB

after:
 # virsh freepages --pagesize <TAB><TAB>
1GiB  2MiB  4KiB

Signed-off-by: Lin Ma <lma@suse.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/vsh.c