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

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

    case $prev in
        -f | -g | -l | -r | --file | --log | --gamelog | --read)
            _filedir
            return
            ;;
    esac

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

} &&
    complete -F _civserver civserver freeciv-server

# ex: filetype=sh