summaryrefslogtreecommitdiffstats
path: root/completions/pyflakes
blob: 0a4e977197a1a9a9b6ec96dd5b49bcdf5867cc61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# pyflakes(1) completion                                   -*- shell-script -*-

_pyflakes()
{
    local cur prev words cword
    _init_completion || return

    case $prev in
        -h | --help | --version)
            return
            ;;
    esac

    if [[ $cur == -* ]]; then
        COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
        return
    fi

    _filedir py
} &&
    complete -F _pyflakes pyflakes

# ex: filetype=sh