#compdef git-warp-time

autoload -U is-at-least

_git-warp-time() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" \
'-d[Include locally modified files]' \
'--dirty[Include locally modified files]' \
'-i[Include ignored files]' \
'--ignored[Include ignored files]' \
'-q[Don'\''t print anything about files touched or skipped]' \
'--quiet[Don'\''t print anything about files touched or skipped]' \
'-h[Print help information]' \
'--help[Print help information]' \
'*::paths -- Optional list of paths to operate on instead of scannning:' \
&& ret=0
}

(( $+functions[_git-warp-time_commands] )) ||
_git-warp-time_commands() {
    local commands; commands=()
    _describe -t commands 'git-warp-time commands' commands "$@"
}

_git-warp-time "$@"
