# Completion script for scrub. A utility which iteratively writes patterns on files or disk devices to make retrieving the data more difficult. (http://linux.die.net/man/1/scrub).
patterns="nnsa dod bsi gutmann schneier pfitzner7 pfitzner33 usarmy fillzero fillff random random2 old fastold"
_arguments -C \
"(- 1 *)"{-v,--version}"[Print scrub version and exit.]" \
{-r,--remove}"[Remove the file after scrubbing.]" \
{-p,--pattern}"[Select the patterns to write.]:pattern:($patterns)" \
{-b,--blocksize}"[Perform read and write calls using the specified blocksize (in bytes).]:block size:" \
{-f,--force}"[Scrub even if target contains signature indicating it has already been scrubbed.]" \
{-S,--no-signature}"[Do not write scrub signature.]" \
{-X,--freespace}"[Create specified directory and fill it with files until write returns ENOSPC (file sys‐tem full), then scrub the files as usual.]:directory name:" \
{-D,--dirent}"[After scrubbing the file, scrub its name in the directory entry, then rename it to the new name.]:new name:" \
{-s,--device-size}"[Override the device size (in bytes).]:size:" \
{-L,--no-link}"[If file is a symbolic link, do not scrub the link target.]" \
{-R,--no-hwrand}"[Don't use a hardware random number generator even if one is available.]" \
{-t,--no-threads}"[Don't generate random data in parallel with I/O.]" \
{-n,--dry-run}"[Do everything but write to targets.]" \
{-h,--help}"[Print a summary of command line options on stderr.]" \