COMPREPLY=( $(compgen -W "auto never always" -- $cur) )
return 0
;;
+ '--output')
+ local prefix realcur OUTPUT_ALL OUTPUT
+ realcur="${cur##*,}"
+ prefix="${cur%$realcur}"
+ OUTPUT_ALL="
+ Attrs
+ Boot
+ Bsize
+ Cpg
+ Cylinders
+ Device
+ End
+ End-C/H/S
+ Flags
+ Fsize
+ Id
+ Name
+ Sectors
+ Size
+ Slice
+ Start
+ Start-C/H/S
+ Type
+ Type-UUID
+ UUID
+ "
+ for WORD in $OUTPUT_ALL; do
+ if ! [[ $prefix == *"$WORD"* ]]; then
+ OUTPUT="$WORD $OUTPUT"
+ fi
+ done
+ compopt -o nospace
+ COMPREPLY=( $(compgen -P "$prefix" -W "$OUTPUT" -S ',' -- "$realcur") )
+ return 0
+ ;;
'-u'|'--units')
COMPREPLY=( $(compgen -W "cylinders sectors" -- $cur) )
return 0
;;
- '-C'|'--geom-cylinders'|'-H'|'--geom-heads'|'-S'|'--geom-sectors')
+ '-C'|'--cylinders'|'-H'|'--heads'|'-S'|'--sectors')
COMPREPLY=( $(compgen -W "number" -- $cur) )
return 0
;;
--compatibility
--color
--list
+ --output
--type
--units
--getsz
- --geom-cylinders
- --geom-heads
- --geom-sectors
+ --bytes
+ --wipe
+ --wipe-partitions
+ --cylinders
+ --heads
+ --sectors
--help
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )