xz: Complete -T/--threads argument

master
Ville Skyttä 2014-07-04 14:58:05 +03:00
parent dbb93ae77b
commit 9e2db8a03e
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@ _xz()
COMPREPLY=( $( compgen -W 'auto xz lzma raw' -- "$cur" ) )
return 0
;;
-T|--threads)
COMPREPLY=( $( compgen -W "{0..$(_ncpus)}" -- "$cur" ) )
return 0
;;
-M|--memlimit|--memlimit-compress|--memlimit-decompress|--memory|\
-S|--suffix|--delta|--lzma1|--lzma2)
# argument required but no completions available