# bash completion for check_psu_power                               -*- shell-script -*-

_check_psu_power()
{
    local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
    COMPREPLY=()

    case $prev in
        -i)
            compopt -o filenames 2>/dev/null
            mapfile -t COMPREPLY < <(compgen -f -- "$cur")
            return
            ;;
        -b | -a | -w | -c | -t)
            return
            ;;
    esac

    # no positional arguments: offer the options
    mapfile -t COMPREPLY < <(compgen -W '-b -a -w -c -t -i -V -h' -- "$cur")
}
complete -F _check_psu_power check_psu_power
