HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/zsh/functions/Completion/Darwin/_mdutil
#compdef mdutil

# @todo This isn't fully comprehensive, but it's unclear from the documentation
# how some of these options are meant to work together or what kind of arguments
# they expect

local -a volumes=( / /Volumes/*(N) )

_arguments -s -S : \
  '(-V)-a[apply to all volumes]' \
  '-d[disable Spotlight activity]' \
  '-E[erase and rebuild index]' \
  '-i[toggle indexing status]:indexing status:(on off)' \
  '-p[publish metadata]' \
  '-s[print indexing status]' \
  '(: -)-t[resolve files from specified file ID]:file ID, volume path, or device ID: :file ID' \
  "(-a)-V[apply to stores on specified volume]:volume:(${(j< >)${(@q-)volumes}})" \
  '-v[output verbosely]' \
  "*:volume:(${(j< >)${(@q-)volumes}})"