#compdef ykinfo

_arguments \
  '*:file:_files' \
  '-s[get the serial number and output it]' \
  '-m[get the serial number and output it as modhex]' \
  '-nkey[read from the nth key found]' \
  '-H[get the serial number and output it as hex]' \
  '-v[get the version and output it]' \
  '-t[get the touch level and output it]' \
  '-p[get the programming sequence and output it]' \
  '-1[get the status of slot 1, 1 for programmed and 0 for empty]' \
  '-2[get the status of slot 2, 1 for programmed and 0 for empty]' \
  '-a[get all the information above]' \
  '-c[get YubiKey capability information]' \
  '-q[modifier, only show the relevant data from the YubiKey, no extra information]' \
  '-V[print tool version and exit]'
