Updated convertfromraw command

This commit is contained in:
2023-03-19 18:41:01 +01:00
parent 51a393f8fe
commit 8fd579c2cd

View File

@@ -982,11 +982,12 @@ _VBoxManage() {
;; ;;
convertfromraw) convertfromraw)
local items=(--format --variant --uuid)
if [[ ${prev} == ${cmd} ]]; then if [[ ${prev} == ${cmd} ]]; then
COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) ) COMPREPLY=( $(compgen -f -- ${cur}) )
elif [[ ${#COMP_WORDS[@]} -eq 4 ]]; then
COMPREPLY=( $(compgen -f -- ${cur}) )
else else
items=(--format --variant --uuid)
_get_excluded_items "${items[@]}" _get_excluded_items "${items[@]}"
COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) COMPREPLY=( $(compgen -W "$result" -- ${cur}) )
case "${prev}" in case "${prev}" in