case $cur in
-*)
OPTS="
+ --force
--offset
--length
--step
-*)
case $prev in
'report'|'reset')
- OPTS="--verbose --offset --length --count"
+ OPTS="--verbose --offset --length --count --force"
;;
*)
OPTS="--help --version"
-*)
OPTS=" --color
--zero
+ --lock
--help
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
--compatibility
--color
--list
+ --list-details
+ --noauto-pt
+ --lock
--output
--type
--units
esac
OPTS=" --json
--pairs
+ --noheadings
--output
--sort
--help
esac
case $cur in
-*)
- OPTS="--check --force --pagesize --label --swapversion --uuid --version --help"
+ OPTS="--check --force --pagesize --lock --label --swapversion --uuid --version --help"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;
--pid=
--cgroup=
--user=
+ --time=
--setuid
--setgid
--preserve-credentials
--show-geometry
--list
--list-free
+ --disk-id
--reorder
--show-size
--list-types
--verify
+ --relocate
--delete
--part-label
--part-type
--move-data
--force
--color
+ --lock
--partno
--no-act
--no-reread
--force
--noheadings
--json
+ --lock
--no-act
--offset
--output