#compdef arch-rebuild-order

autoload -U is-at-least

_arch-rebuild-order() {
    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[@]}" \
'*--repos=[Repositories]' \
'--dbpath=[The path to the pacman database, default ( /var/lib/pacman )]' \
'-d+[Write a dotfile into the given file]' \
'--dotfile=[Write a dotfile into the given file]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
':pkgnames -- List of input packages:_files' \
&& ret=0
    
}

(( $+functions[_arch-rebuild-order_commands] )) ||
_arch-rebuild-order_commands() {
    local commands; commands=(
        
    )
    _describe -t commands 'arch-rebuild-order commands' commands "$@"
}

_arch-rebuild-order "$@"