AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.227.46.54


Current Path : /usr/share/bash-completion/completions/
Upload File :
Current File : //usr/share/bash-completion/completions/gssdp-discover

# bash completion for gssdp-discover                       -*- shell-script -*-

_gssdp_discover()
{
    local cur prev words cword split
    _init_completion -s || return

    case $prev in
        --help | --target | --timeout | --rescan-interval | -[htnr])
            return
            ;;
        --interface | -i)
            _available_interfaces -a
            return
            ;;
        --message-type | -m)
            local types=$($1 --help 2>&1 |
                command sed -ne 's/^.*--message-type=.*(\([^)]*\))$/\1/p')
            COMPREPLY=($(
                IFS+=,
                compgen -W "$types" -- "$cur"
            ))
            return
            ;;
    esac

    if [[ $cur == -* ]]; then
        COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
        [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
    fi
} &&
    complete -F _gssdp_discover gssdp-discover

# ex: filetype=sh