#compdef ioreg

_arguments \
  '*:file:_files' \
  '-a[Archive the output in XML]' \
  '-b[Show the object name in bold]' \
  '-c[Show the object properties]' \
  '-d[Limit tree traversal to the specified depth]' \
  '-f[Enable smart formatting]' \
  '-i[Show the object inheritance]' \
  '-k[Show the object properties only if the object has the specified key]' \
  '-l[Show properties for all displayed objects]' \
  '-n[Show the object properties only if the object has the specified name]' \
  '-p[Traverse the registry over the specified plane]' \
  '-r[Show subtrees rooted by objects that match the specified criteria]' \
  '-t[Show tree location of each subtree]' \
  '-w[Clip the output to the specified line width]' \
  '-x[Show data and numbers as hexadecimal.]' \
  '-y[Do not consider DriverKit classes with -c.]'
