summaryrefslogtreecommitdiffstats
path: root/completions/aclocal
blob: b23ff7298cda03e74d77077375876a75eb528a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# aclocal(1) completion                                    -*- shell-script -*-

_comp_cmd_aclocal()
{
    local cur prev words cword was_split comp_args
    _comp_initialize -s -- "$@" || return

    case "$prev" in
        --help | --print-ac-dir | --version)
            return
            ;;
        --acdir | -I)
            _comp_compgen_filedir -d
            return
            ;;
        --output)
            _comp_compgen_filedir
            return
            ;;
        --warnings | -W)
            local cats=(syntax unsupported)
            _comp_compgen -- -W '"${cats[@]}" "${cats[@]/#/no-}" all none
                error'
            return
            ;;
    esac

    [[ $was_split ]] && return

    _comp_compgen_help
    [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
} &&
    complete -F _comp_cmd_aclocal aclocal aclocal-1.1{0..6}

# ex: filetype=sh