#compdef md5sum gmd5sum

_arguments -S \
  '(-b --binary)'{-b,--binary}'[read in binary mode]' \
  '(-c --check)'{-c,--check}'[read MD5 sums from the FILEs and check them]' \
  '--tag[create a BSD-style checksum]' \
  '(-t --text)'{-t,--text}'[read in text mode]' \
  '(-q --quiet)'{-q,--quiet}"[don't print OK for each successfully verified file]" \
  '--status[no output, status code shows success]' \
  '--strict[exit non-zero for improperly formatted checksum lines]' \
  '(-w --warn)'{-w,--warn}'[warn about improperly formatted checksum lines]' \
  '--help[display help and exit]' \
  '--version[output version information and exit]' \
  '*:files:_files'
