Hardcode the list of fixed arguments for some of the parameters of these tools. --- bash/virt-resize | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bash/virt-resize b/bash/virt-resize index 447f0cf..7c879e1 100644 --- a/bash/virt-resize +++ b/bash/virt-resize @@ -23,6 +23,21 @@ _guestfs_options_only () _init_completion -s || return + case "$prev" in + --align-first) + COMPREPLY=( $( compgen -W "never always auto" -- "$cur") ) + return ;; + --check-tmpdir) + COMPREPLY=( $( compgen -W "ignore i continue cont c warn warning w fail f error" -- "$cur") ) + return ;; + --list-format) + COMPREPLY=( $( compgen -W "short long json" -- "$cur") ) + return ;; + --password-crypto) + COMPREPLY=( $( compgen -W "md5 sha256 sha512" -- "$cur") ) + return ;; + esac + case "$cur" in --*) # --options -- 1.9.3