#compdef spctl

_arguments \
  '*:file:_files' \
  '--add[Add rule(s) to the system-wide assessment rule database]' \
  '-a[Requests that spctl perform an assessment on the files given]' \
  '--disable[Disable one or more rules in the assessment rule database]' \
  '--enable[Enable rule(s) in the assessment rule database]' \
  '--global-disable[Disable the assessment subsystem altogether]' \
  '--global-enable[Enable the assessment subsystem]' \
  '--remove[Remove rule(s) from the assessment rule database]' \
  '--status[Query whether the assessment subsystem is enabled or disabled]' \
  '--anchor[In rule update operations, indicates that the arguments are hashes of anchor]' \
  '--continue[If the assessment of a file fails, continue assessing additional arg]' \
  '--hash[Indicates that the arguments are code directory hashes]' \
  '--ignore-cache[Do not query or use the assessment object cache]' \
  '--label[Specifies a string label to attach to new rules, or find in existing rules]' \
  '--no-cache[Do not place the outcome of any assessments into the assessment object cache]' \
  '--path[In rule update operations, indicates that the argument(s) denote paths to file]' \
  '--priority[In rule update operations, specifies the priority of the rule(s) created]' \
  '--raw[When displaying the outcome of an assessment, write it as a \\&"raw\\&" XML]' \
  '--requirement[In rule update operations, indicates that the argument(s) are code reqs]' \
  '--reset-default[Unconditionally reset the system policy database to its default value]' \
  '--rule[In rule update operations, indicates that the argument(s) are the index number]' \
  '-t[Specify which type of assessment is desired: execute to assess code execution]' \
  '-v[Requests more verbose output]'
