#compdef fink local expl state line opt_args ret=1 typeset -A opt_args local exargs="-h --help -V --version" _arguments \ "(1 $exargs)"'1::command:->command' \ "(- 1)"{-h,--help}'[display help text]' \ "(-q --quiet -v --verbose $exargs)"{-q,--quiet}'[causes fink to be less verbose, opposite of --verbose]' \ "(- 1)"{-V,--version}'[display version information]' \ "(-v --verbose -q --quiet $exargs)"{-v,--verbose}'[causes fink to be more verbose, opposite of --quiet]' \ "(-y --yes $exargs)"{-y,--yes}'[assume default answer for all interactive questions]' \ && return 0 if [[ $state = command ]]; then local commands commands=(install remove purge update selfupdate update-all configure list apropos describe index) _wanted command expl 'command' compadd "$@" $commands fi return ret # Local Variables: # mode: sh # End: