5 # we cache the list of ports
 
   6 # we shall use some cache policy to avoid problems with new ports
 
   7 if (( ! $+portlist )); then
 
   8         portlist=($(port echo all; echo "all current active inactive installed uninstalled outdated"))
 
  57 '-v[verbose mode (generate verbose messages)]' \
 
  58 '-d[debug mode (generate debugging messages)]' \
 
  59 '-q[quiet mode (suppress messages)]' \
 
  60 '-D[specify portdir]' \
 
  61 '-k[keep mode (do not autoclean after install)]' \
 
  62 '-n[dont follow dependencies in upgrade (only for upgrading)]' \
 
  63 '-a[upgrade all installed ports (only for upgrading)]' \
 
  64 '-u[uninstall non-active ports when upgrading and uninstalling]' \
 
  65 '-f[force mode (ignore state file)]' \
 
  66 '-s[source-only mode]' \
 
  67 '-b[binary-only mode]' \
 
  68 '-o[honor state files older than Portfile]' \
 
  69 '*::command:->command' \
 
  74         if ((CURRENT == 1)); then
 
  84         _describe -t commands 'port commands' subcmds
 
  87         _describe -t commands 'available ports' portlist