[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2c83f0ff43c9f908e686889de4c9354d561f4e26

Ville Skyttä ville.skytta at iki.fi
Sun Oct 18 19:12:56 UTC 2009


The following commit has been merged in the master branch:
commit 2c83f0ff43c9f908e686889de4c9354d561f4e26
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Oct 18 22:12:37 2009 +0300

    Remove many unnecessary short option completions where long ones exist.

diff --git a/CHANGES b/CHANGES
index 34ce0ce..a8459ea 100644
--- a/CHANGES
+++ b/CHANGES
@@ -14,6 +14,7 @@ bash-completion (1.x)
   * Rename contrib/bluez-utils to contrib/bluez to follow bluez 4.x naming.
   * Apply cardctl completion to pccardctl too.
   * Apply pine completion to alpine too.
+  * Remove many unnecessary short option completions where long ones exist.
 
  -- David Paleino <d.paleino at gmail.com>  Sun, 11 Oct 2009 11:11:57 +0200
 
diff --git a/contrib/_yum b/contrib/_yum
index c72def9..f2aa663 100644
--- a/contrib/_yum
+++ b/contrib/_yum
@@ -137,12 +137,11 @@ _yum()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-	COMPREPLY=( $( compgen -W '-h --help -t --tolerant -C -c -R \
-			-d --showduplicates -e -q --quiet -v --verbose -y \
-			--version --installroot --enablerepo --disablerepo -x \
-			--exclude --disableexcludes --obsoletes --noplugins \
-			--nogpgcheck --disableplugin --enableplugin \
-			--skip-broken --color' -- $cur ) )
+	COMPREPLY=( $( compgen -W '--help --tolerant -C -c -R -d \
+	    --showduplicates -e --quiet --verbose -y --version --installroot \
+            --enablerepo --disablerepo --exclude --disableexcludes --obsoletes \
+            --noplugins --nogpgcheck --disableplugin --enableplugin \
+            --skip-broken --color' -- $cur ) )
 	return 0
     fi
 }
diff --git a/contrib/aspell b/contrib/aspell
index 7a5b04e..0018494 100644
--- a/contrib/aspell
+++ b/contrib/aspell
@@ -59,20 +59,20 @@ _aspell()
 
     if [[ "$cur" == -* ]]; then
         COMPREPLY=( $( compgen -W '--conf --conf-dir --data-dir --dict-dir \
-            --encoding --add-filter --rem-filter --mode -e \
-            -H -t --add-extra-dicts --rem-extra-dicts \
-            --home-dir -W --ignore --ignore-accents \
+            --encoding --add-filter --rem-filter --mode \
+            --add-extra-dicts --rem-extra-dicts \
+            --home-dir --ignore --ignore-accents \
             --dont-ignore-accents --ignore-case --dont-ignore-case \
             --ignore-repl --dont-ignore-repl --jargon --keyboard \
-            --lang --language-tag --local-data-dir -d --master \
+            --lang --language-tag --local-data-dir --master \
             --module --add-module-search-order \
-            --rem-module-search-order --per-conf -p --personal \
-            --prefix --repl -C -B --run-together --dont-run-together \
+            --rem-module-search-order --per-conf --personal \
+            --prefix --repl --run-together --dont-run-together \
             --run-together-limit --run-together-min --save-repl \
             --dont-save-repl --set-prefix --dont-set-prefix --size \
             --spelling --strip-accents --dont-strip-accents \
             --sug-mode --add-word-list-path --rem-word-list-path \
-            -b -x --backup -b|-x --dont-backup --reverse --dont-reverse \
+            --backup --dont-backup --reverse --dont-reverse \
             --time --dont-time --keymapping --add-email-quote \
             --rem-email-quote --email-margin --add-tex-command \
             --rem-tex-command --tex-check-comments \
@@ -80,9 +80,8 @@ _aspell()
             --rem-tex-extension --add-sgml-check --rem-sgml-check \
             --add-sgml-extension --rem-sgml-extension' -- "$cur" ) )
     else
-        COMPREPLY=( $( compgen -W '-? help -c check -a pipe -l list \
-            config config soundslike filter -v version dump \
-            create merge' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W 'usage help check pipe list \
+            config soundslike filter version dump create merge' -- "$cur" ) )
     fi
 
 }
diff --git a/contrib/bluez b/contrib/bluez
index 57be3fd..779a0e4 100644
--- a/contrib/bluez
+++ b/contrib/bluez
@@ -71,7 +71,7 @@ _hcitool()
     _get_command
     if [ -z $command ]; then
         if [[ "$cur" == -* ]]; then
-            COMPREPLY=( $( compgen -W '-h -i' -- "$cur" ) )
+            COMPREPLY=( $( compgen -W '--help -i' -- "$cur" ) )
         else
             COMPREPLY=( $( compgen -W 'dev inq scan name info \
                 spinq epinq cmd con cc dc sr cpt rssi lq tpl \
@@ -233,9 +233,8 @@ _rfcomm()
     _get_command
     if [ -z $command ]; then
         if [[ "$cur" == -* ]]; then
-            COMPREPLY=( $( compgen -W '-h --help -a -r --raw -f \
-                --config -i -A --auth -E --encrypt -S --secure \
-                -M --master' -- "$cur" ) )
+            COMPREPLY=( $( compgen -W '--help -a --raw \
+                --config -i --auth --encrypt --secure --master' -- "$cur" ) )
         else
             COMPREPLY=( $( compgen -W 'show connect listen watch \
                 bind release' -- "$cur" ) )
@@ -276,7 +275,7 @@ _ciptool()
     _get_command
     if [ -z $command ]; then
         if [[ "$cur" == -* ]]; then
-            COMPREPLY=( $( compgen -W '-h --help -i' -- "$cur" ) )
+            COMPREPLY=( $( compgen -W '--help -i' -- "$cur" ) )
         else
             COMPREPLY=( $( compgen -W 'show search connect release \
                 loopback' -- "$cur" ) )
@@ -310,7 +309,7 @@ _dfutool()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-h --help -d --device' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--help --device' -- "$cur" ) )
     else
         _count_args
         case $args in
@@ -336,7 +335,7 @@ _hciconfig()
     _get_command
     if [ -z $command ]; then
         if [[ "$cur" == -* ]]; then
-            COMPREPLY=( $( compgen -W '-h --help -a --all' -- "$cur" ) )
+            COMPREPLY=( $( compgen -W '--help --all' -- "$cur" ) )
         else
             COMPREPLY=( $( compgen -W 'up down reset rstat auth \
                 noauth encrypt noencrypt secmgr nosecmgr \
@@ -418,7 +417,7 @@ _hid2hci()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-h --help -q --quiet -0 --tohci -1 \
+        COMPREPLY=( $( compgen -W '--help --quiet -0 --tohci -1 \
             --tohid' -- "$cur" ) )
     fi
 }
@@ -432,7 +431,7 @@ _avctrl()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-h --help -q --quiet' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--help --quiet' -- "$cur" ) )
     else
         _count_args
         if [ $args -eq 1 ]; then
diff --git a/contrib/bzip2 b/contrib/bzip2
index 5572d09..e323455 100644
--- a/contrib/bzip2
+++ b/contrib/bzip2
@@ -10,8 +10,7 @@ _bzip2()
     prev=${COMP_WORDS[COMP_CWORD-1]}
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c -d -f -h -k -L -q -s \
-            -t -v -V -z -1 -2 -3 -4 -5 -6 -7 -8 -9 \
+        COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 \
             --help --decompress --compress --keep --force \
             --test --stdout --quiet --verbose --license \
             --version --small --fast --best' -- "$cur" ) )
diff --git a/contrib/dict b/contrib/dict
index c45310f..d24ef6f 100644
--- a/contrib/dict
+++ b/contrib/dict
@@ -39,13 +39,13 @@ _dict()
     done
 
     if [[ "$cur" = -* ]]; then
-        COMPREPLY=( $( compgen -W '-h --host -p --port -d --database \
-                   -m --match -s --strategy -c --config -C \
-                   --nocorrect -D --dbs -S --strats -H \
-                   --serverhelp -i --info -I --serverinfo \
-                   -a --noauth -u --user -k --key -V --version \
-                   -L --license --help -v --verbose -r --raw \
-                   -P --pager --debug --html --pipesize --client' \
+        COMPREPLY=( $( compgen -W '--host --port --database \
+                   --match --strategy --config \
+                   --nocorrect --dbs --strats \
+                   --serverhelp --info --serverinfo \
+                   --noauth --user --key --version \
+                   --license --help --verbose --raw \
+                   --pager --debug --html --pipesize --client' \
                    -- "$cur" ) )
         return 0
     fi
diff --git a/contrib/genisoimage b/contrib/genisoimage
index 7f3abfe..d465192 100644
--- a/contrib/genisoimage
+++ b/contrib/genisoimage
@@ -30,30 +30,28 @@ _mkisofs()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-abstract -A -allow-lowercase \
-            -allow-multidot -biblio -cache-inodes \
-            -no-cache-inodes -b -eltorito-alt-boot -B -G \
-            -hard-disk-boot -no-emul-boot -no-boot \
-            -boot-load-seg -boot-load-size \
-            -boot-info-table -C -c -check-oldname \
-            -check-session -copyright -d -D -dir-mode \
-            -dvd-video -f -file-mode -gid -gui \
-            -graft-points -hide -hide-list -hidden \
-            -hidden-list -hide-joliet -hide-joliet-list \
-            -hide-joliet-trans-tbl -hide-rr-moved \
-            -input-charset -output-charset -iso-level -J \
-            -joliet-long -jcharset -l -L -log-file -m \
-            -exclude-list -max-iso9660-filenames -M -N \
-            -new-dir-mode -nobak -no-bak -force-rr -no-rr \
-            -no-split-symlink-components \
-            -no-split-symlink-fields -o -pad -no-pad \
-            -path-list -P -p -print-size -quiet -R -r \
-            -relaxed-filenames -sort -split-output \
-            -stream-media-size -stream-file-name -sysid -T\
-            -table-name -ucs-level -udf -uid \
-            -use-fileversion -U -no-iso-translate -V \
-            -volset -volset-size -volset-seqno -v -x -z \
-            -hfs -apple -map -magic -hfs-creator \
+        COMPREPLY=( $( compgen -W '-abstract -appid -allow-lowercase \
+            -allow-multidot -biblio -cache-inodes -no-cache-inodes \
+            -eltorito-boot -eltorito-alt-boot -sparc-boot -generic-boot \
+            -hard-disk-boot -no-emul-boot -no-boot -boot-load-seg \
+            -boot-load-size -boot-info-table -cdrecord-params \
+            -eltorito-catalog -check-oldname -check-session -copyright \
+            -omit-period -disable-deep-relocation -dir-mode -dvd-video \
+            -follow-links -file-mode -gid -gui -graft-points -hide -hide-list \
+            -hidden -hidden-list -hide-joliet -hide-joliet-list \
+            -hide-joliet-trans-tbl -hide-rr-moved -input-charset \
+            -output-charset -iso-level -joliet -joliet-long -jcharset \
+            -full-iso9660-filenames -allow-leading-dots -log-file -exclude \
+            -exclude-list -max-iso9660-filenames -prev-session \
+            -omit-version-number -new-dir-mode -nobak -no-bak -force-rr -no-rr \
+            -no-split-symlink-components -no-split-symlink-fields -output -pad \
+            -no-pad -path-list -publisher -preparer -print-size -quiet -rock
+            -rational-rock -relaxed-filenames -sort -split-output \
+            -stream-media-size -stream-file-name -sysid -translation-table \
+            -table-name -ucs-level -udf -uid -use-fileversion \
+            -untranslated-filenames -no-iso-translate -volid -volset \
+            -volset-size -volset-seqno -verbose -old-exclude \
+            -transparent-compression -hfs -apple -map -magic -hfs-creator \
             -hfs-type -probe -no-desktop -mac-name \
             -boot-hfs-file -part -auto -cluster-size \
             -hide-hfs -hide-hfs-list -hfs-volid \
diff --git a/contrib/gkrellm b/contrib/gkrellm
index 6414410..d3e22b0 100644
--- a/contrib/gkrellm
+++ b/contrib/gkrellm
@@ -25,9 +25,9 @@ _gkrellm()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--help -t --theme -s --server \
-            -g --geometry -wm -w --withdrawn -c --config -nc \
-            -f --force-host-config -demo -p --plugin -P --port' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--help --theme --server \
+            --geometry --wm --withdrawn --config --nc \
+            --force-host-config --demo --plugin --port' -- "$cur" ) )
     fi
 
 } &&
diff --git a/contrib/gpg b/contrib/gpg
index a0dea7d..f05fb1f 100644
--- a/contrib/gpg
+++ b/contrib/gpg
@@ -33,8 +33,7 @@ _gpg()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-s -b -e -f -c -d -a -r -u -Z -o -v\
-            -q -n -N $(gpg --dump-options)' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$(gpg --dump-options)' -- "$cur" ) )
      fi
 
 } &&
diff --git a/contrib/gpg2 b/contrib/gpg2
index 56e3c6e..83dc4d7 100644
--- a/contrib/gpg2
+++ b/contrib/gpg2
@@ -37,8 +37,7 @@ _gpg2 ()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-s -b -e -c -d -k -K -a -r -u -z -o -v \
-            -n -N -i -h -R -t $(gpg2 --dump-options)' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$(gpg2 --dump-options)' -- "$cur" ) )
     fi
 } &&
 complete -F _gpg2 $default gpg2
diff --git a/contrib/iptables b/contrib/iptables
index 849fd54..e5c0486 100644
--- a/contrib/iptables
+++ b/contrib/iptables
@@ -48,7 +48,8 @@ _iptables()
         ;;
     *)
         if [[ "$cur" == -* ]]; then
-            COMPREPLY=( $( compgen -W '-i -o -s -d -p -f -m --append \
+            COMPREPLY=( $( compgen -W '--in-interface --out-interface --source \
+                --destination --protocol --fragment --match --append \
                 --delete --insert --replace --list --flush --zero --new \
                 --delete-chain --policy --rename-chain --proto --source \
                 --destination --in-interface --jump --match --numeric \
diff --git a/contrib/java b/contrib/java
index 9b8c95d..88e91c5 100644
--- a/contrib/java
+++ b/contrib/java
@@ -151,12 +151,11 @@ _java()
     if [[ "$cur" == -* ]]; then
         # relevant options completion
         COMPREPLY=( $( compgen -W '-client -hotspot -server -classic \
-            -cp -classpath -D -verbose -verbose:class \
+            -classpath -D -verbose -verbose:class \
             -verbose:gc -version:jni -version \
-            -showversion -? -help -X -jar \
-            -ea -enableassertions -da -disableassertions \
-            -esa -enablesystemassertions \
-            -dsa -disablesystemassertions ' -- "$cur" ) )
+            -showversion -help -X -jar \
+            -enableassertions -disableassertions \
+            -enablesystemassertions -disablesystemassertions ' -- "$cur" ) )
     else
         if [[ "$prev" == -jar ]]; then
             # jar file completion
@@ -240,9 +239,9 @@ _javac()
 
     if [[ "$cur" == -* ]]; then
         # relevant options completion
-        COMPREPLY=( $( compgen -W '-g -g:none -g:lines -g:vars\
-            -g:source -O -nowarn -verbose -deprecation -classpath\
-            -sourcepath -bootclasspath -extdirs -d -encoding -source\
+        COMPREPLY=( $( compgen -W '-g -g:none -g:lines -g:vars \
+            -g:source -O -nowarn -verbose -deprecation -classpath \
+            -sourcepath -bootclasspath -extdirs -d -encoding -source \
             -target -help' -- "$cur" ) )
     else
         # source files completion
diff --git a/contrib/lvm b/contrib/lvm
index 647564a..290c0a4 100644
--- a/contrib/lvm
+++ b/contrib/lvm
@@ -52,8 +52,8 @@ _lvmdiskscan()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -h -? --help -l \
-            --lvmpartition -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--debug --help \
+            --lvmpartition --verbose --version' -- "$cur" ) )
     fi
 }
 complete -F _lvmdiskscan lvmdiskscan
@@ -66,10 +66,8 @@ _pvscan()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -e \
-            --exported -n --novolumegroup -h -? \
-            --help --ignorelockingfailure -P \
-            --partial -s --short -u --uuid -v \
+        COMPREPLY=( $( compgen -W '--debug --exported --novolumegroup \
+            --help --ignorelockingfailure --partial --short --uuid \
             --verbose --version' -- "$cur" ) )
     fi
 }
@@ -98,11 +96,10 @@ _pvs()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--aligned -a --all -d --debug \
-            -h -? --help --ignorelockingfailure --noheadings \
-            --nosuffix -o --options -O --sort \
-            --separator --unbuffered --units \
-            -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--aligned --all --debug \
+            --help --ignorelockingfailure --noheadings \
+            --nosuffix --options --sort --separator --unbuffered --units \
+            --verbose --version' -- "$cur" ) )
     else
         _physicalvolumes
     fi
@@ -125,8 +122,8 @@ _pvdisplay()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c --colon -C --columns --units \
-            -v --verbose -d --debug -h --help --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--colon --columns --units \
+            --verbose --debug --help --version' -- "$cur" ) )
     else
         _physicalvolumes
     fi
@@ -149,9 +146,9 @@ _pvchange()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-a --all -A --autobackup \
-            -d --debug -h --help -t --test -u --uuid -x \
-            --allocatable -v --verbose --addtag --deltag \
+        COMPREPLY=( $( compgen -W '--all --autobackup \
+            --debug --help --test --uuid \
+            --allocatable --verbose --addtag --deltag \
             --version' -- "$cur" ) )
     else
         _physicalvolumes
@@ -187,11 +184,11 @@ _pvcreate()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--restorefile -d --debug -f \
-            --force -h -? --help --labelsector -M --metadatatype \
+        COMPREPLY=( $( compgen -W '--restorefile --debug \
+            --force --help --labelsector --metadatatype \
             --metadatacopies --metadatasize \
-            --setphysicalvolumesize -t --test -u --uuid uuid -v \
-            --verbose -y --yes --version' -- "$cur" ) )
+            --setphysicalvolumesize --test --uuid \
+            --verbose --yes --version' -- "$cur" ) )
     else
         _physicalvolumes
     fi
@@ -217,10 +214,9 @@ _pvmove()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--abort -A --autobackup \
-            -b --background -d --debug -f --force -h -? \
-            --help -i --interval -t --test -v --verbose \
-            --version -n --name' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--abort --autobackup \
+            --background --debug --force --help --interval --test --verbose \
+            --version --name' -- "$cur" ) )
     else
         _physicalvolumes
     fi
@@ -235,9 +231,8 @@ _pvremove()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -f --force -h -? \
-            --help -y --yes -t --test -v --verbose \
-            --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--debug --force \
+            --help --yes --test --verbose --version' -- "$cur" ) )
     else
         _physicalvolumes
     fi
@@ -252,9 +247,9 @@ _vgscan()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -h --help \
-            --ignorelockingfailure --mknodes -P \
-            --partial -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--debug --help \
+            --ignorelockingfailure --mknodes \
+            --partial --verbose --version' -- "$cur" ) )
     fi
 }
 complete -F _vgscan vgscan
@@ -283,11 +278,11 @@ _vgs()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--aligned -d --debug \
-            -h --help --ignorelockingfailure --noheadings \
-            --nosuffix -o --options -O --sort -P --partial \
+        COMPREPLY=( $( compgen -W '--aligned --debug \
+            --help --ignorelockingfailure --noheadings \
+            --nosuffix --options --sort --partial \
             --separator --unbuffered --units \
-            -v --verbose --version' -- "$cur" ) )
+            --verbose --version' -- "$cur" ) )
     else
         _volumegroups
     fi
@@ -310,9 +305,9 @@ _vgdisplay()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c --colon -C --columns --units \
-            -P --partial -A --activevolumegroups -v --verbose \
-            -d --debug -h --help --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--colon --columns --units \
+            --partial --activevolumegroups --verbose \
+            --debug --help --version' -- "$cur" ) )
     else
         _volumegroups
     fi
@@ -335,10 +330,10 @@ _vgchange()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup --alloc -P \
-            --partial -d --debug -h --help --ignorelockingfailure \
-            -t --test -u --uuid -v --verbose --version -a \
-            --available -x --resizeable -l --logicalvolume \
+        COMPREPLY=( $( compgen -W '--autobackup --alloc \
+            --partial --debug --help --ignorelockingfailure \
+            --test --uuid --verbose --version \
+            --available --resizeable --logicalvolume \
             --addtag --deltag' -- "$cur" ) )
     else
         _volumegroups
@@ -370,9 +365,9 @@ _vgcreate()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup --addtag --alloc -d \
-            --debug -h --help -l --maxlogicalvolumes -M --metadatatype -p \
-            --maxphysicalvolumes -s --physicalextentsize -t --test -v \
+        COMPREPLY=( $( compgen -W '--autobackup --addtag --alloc \
+            --debug --help --maxlogicalvolumes --metadatatype \
+            --maxphysicalvolumes --physicalextentsize --test \
             --verbose --version' -- "$cur" ) )
     else
         _args
@@ -393,8 +388,8 @@ _vgremove()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -h --help -t --test \
-            -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--debug --help --test \
+            --verbose --version' -- "$cur" ) )
     else
         _volumegroups
     fi
@@ -417,8 +412,8 @@ _vgrename()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup -d --debug -h \
-            -? --help -t --test -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup --debug \
+            --help --test --verbose --version' -- "$cur" ) )
     else
         _volumegroups
     fi
@@ -441,8 +436,8 @@ _vgreduce()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-a --all -A --autobackup -d \
-            --debug -h --help --removemissing -t --test -v \
+        COMPREPLY=( $( compgen -W '--all --autobackup \
+            --debug --help --removemissing --test \
             --verbose --version' -- "$cur" ) )
 
     else
@@ -476,8 +471,8 @@ _vgextend()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup -d --debug -h \
-            -? --help -t --test -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup --debug \
+            --help --test --verbose --version' -- "$cur" ) )
     else
         _args
         if [ $args -eq 0 ]; then
@@ -497,8 +492,8 @@ _vgport()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-a --all -d --debug -h \
-            -? --help -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--all --debug \
+            --help --verbose --version' -- "$cur" ) )
     else
         _volumegroups
     fi
@@ -513,8 +508,8 @@ _vgck()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -h \
-            -? --help -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--debug \
+            --help --verbose --version' -- "$cur" ) )
     else
         _volumegroups
     fi
@@ -545,9 +540,9 @@ _vgconvert()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -h --help --labelsector \
-            -M --metadatatype --metadatacopies --metadatasize \
-            -t --test -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--debug --help --labelsector \
+            --metadatatype --metadatacopies --metadatasize \
+            --test --verbose --version' -- "$cur" ) )
     else
         _volumegroups
     fi
@@ -570,8 +565,8 @@ _vgcfgbackup()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -f --file -h --help \
-            --ignorelockingfailure -P --partial -v --verbose \
+        COMPREPLY=( $( compgen -W '--debug --file --help \
+            --ignorelockingfailure --partial --verbose \
             --version' -- "$cur" ) )
     else
         _volumegroups
@@ -603,9 +598,9 @@ _vgcfgrestore()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -f --file -l --list \
-            -h --help -M --Metadatatype -n --name -t --test \
-            -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--debug --file --list \
+            --help --metadatatype --name --test \
+            --verbose --version' -- "$cur" ) )
     else
         _volumegroups
     fi
@@ -628,8 +623,8 @@ _vgmerge()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup -d --debug -h --help -l \
-            --list -t --test -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup --debug --help \
+            --list --test --verbose --version' -- "$cur" ) )
     else
         _volumegroups
     fi
@@ -656,9 +651,9 @@ _vgsplit()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup -d --debug \
-            -h --help -l --list -M --metadatatype -t --test \
-            -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup --debug \
+            --help --list --metadatatype --test \
+            --verbose --version' -- "$cur" ) )
     else
         _args
         if [ $args -eq 0 -o $args -eq 1 ]; then
@@ -678,7 +673,7 @@ _vgmknodes()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --debug -h --help -v --verbose \
+        COMPREPLY=( $( compgen -W '--debug --help --verbose \
             --version' -- "$cur" ) )
     else
         _volumegroups
@@ -694,9 +689,9 @@ _lvscan()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-b --blockdevice -d --debug \
-            -h -? --help --ignorelockingfailure -P \
-            --partial -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--blockdevice --debug \
+            --help --ignorelockingfailure \
+            --partial --verbose --version' -- "$cur" ) )
     fi
 }
 complete -F _lvscan lvscan
@@ -723,10 +718,10 @@ _lvs()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--aligned -d --debug -h --help \
-            --ignorelockingfailure --noheadings --nosuffix -o --options -O \
-            --sort -P --partial --segments --separator --unbuffered --units \
-            -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--aligned --debug --help \
+            --ignorelockingfailure --noheadings --nosuffix --options \
+            --sort --partial --segments --separator --unbuffered --units \
+            --verbose --version' -- "$cur" ) )
     else
         _logicalvolumes
     fi
@@ -749,9 +744,8 @@ _lvdisplay()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c --colon -C --columns --units \
-            -P --partial -m --maps -v --verbose -d --debug -h \
-            --help --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--colon --columns --units \
+            --partial --maps --verbose --debug --help --version' -- "$cur" ) )
     else
         _logicalvolumes
     fi
@@ -778,12 +772,12 @@ _lvchange()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup -a --available \
-            --addtag --alloc -C --contiguous -d --debug --deltag \
-            -f --force -h --help --ignorelockingfailure -M \
-            --persistent --major major --minor minor -P --partial \
-            -p --permission -r --readahead --refresh -t --test \
-            -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup --available \
+            --addtag --alloc --contiguous --debug --deltag \
+            --force --help --ignorelockingfailure \
+            --persistent --major --minor --partial \
+            --permission --readahead --refresh --test \
+            --verbose --version' -- "$cur" ) )
     else
         _logicalvolumes
     fi
@@ -818,11 +812,11 @@ _lvcreate()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup --addtag --alloc \
-            -C --contiguous -d --debug -h -? --help -i --stripes \
-            -I --stripesize -l --extents -L --size -M --persistent \
-            --major --minor -n --name -p --permission -r \
-            --readahead -t --test --type -v --verbose -Z --zero \
+        COMPREPLY=( $( compgen -W '--autobackup --addtag --alloc \
+            --contiguous --debug --help --stripes \
+            --stripesize --extents --size --persistent \
+            --major --minor --name --permission \
+            --readahead --test --type --verbose --zero \
             --version' -- "$cur" ) )
     else
         _args
@@ -851,9 +845,8 @@ _lvremove()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup -d --debug -f \
-            --force -h -?  --help -t --test -v --verbose \
-            --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup --debug \
+            --force --help --test --verbose --version' -- "$cur" ) )
     else
         _logicalvolumes
     fi
@@ -876,8 +869,8 @@ _lvrename()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup -d --debug -h \
-            -? --help -t --test -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup --debug \
+            --help --test --verbose --version' -- "$cur" ) )
     else
         _logicalvolumes
     fi
@@ -904,10 +897,9 @@ _lvreduce()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup -d \
-            --debug -f --force -h --help -l --extents \
-            -L --size -n --nofsck -r --resizefs -t --test \
-            -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup \
+            --debug --force --help --extents \
+            --size --nofsck --resizefs --test --verbose --version' -- "$cur" ) )
     else
         _logicalvolumes
     fi
@@ -934,10 +926,10 @@ _lvresize()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup --alloc -d \
-            --debug -h --help -i --stripes -I --stripesize \
-            -l --extents -L --size -n --nofsck -r --resizefs \
-            -t --test --type -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup --alloc \
+            --debug --help --stripes --stripesize \
+            --extents --size --nofsck --resizefs \
+            --test --type --verbose --version' -- "$cur" ) )
     else
         _args
         if [ $args -eq 0 ]; then
@@ -969,10 +961,10 @@ _lvextend()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --autobackup --alloc -d \
-            --debug -h --help -i --stripes -I --stripesize \
-            -l --extents -L --size -n --nofsck -r --resizefs \
-            -t --test --type -v --verbose --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--autobackup --alloc \
+            --debug --help --stripes --stripesize \
+            --extents --size --nofsck --resizefs \
+            --test --type --verbose --version' -- "$cur" ) )
     else
         _args
         if [ $args -eq 0 ]; then
diff --git a/contrib/lzma b/contrib/lzma
index 42d2bfb..6cc99b8 100644
--- a/contrib/lzma
+++ b/contrib/lzma
@@ -10,10 +10,9 @@ _lzma()
     prev=${COMP_WORDS[COMP_CWORD-1]}
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c -d -f -h -k -L -q -s \
-            -v -V -z -1 -2 -3 -4 -5 -6 -7 -8 -9 \
-            --help --decompress --compress --keep --force \
-            --test --stdout --quiet --verbose --license \
+        COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 \
+            --help --decompress --compress --keep --force --suffix \
+            --test --stdout --quiet --verbose --license --list \
             --version --small --fast --best --text' -- "$cur" ) )
         return 0
     fi
diff --git a/contrib/lzop b/contrib/lzop
index 9090bac..5602f69 100644
--- a/contrib/lzop
+++ b/contrib/lzop
@@ -9,18 +9,13 @@ _lzop()
     cur=`_get_cword`
     prev=${COMP_WORDS[COMP_CWORD-1]}
 
-    # TODO: -p: takes a dir argument, without a separating space
-
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d -x -l -t -h -I -V -L -1 -2 -3 \
-            -4 -5 -6 -7 -8 -9 -q -v -c -f -F -n -N -P -k -U -o \
-            -S --fast --best --decompress --uncompress --extract \
-            --test --list --ls --info --sysinfo --license --help \
-            --version --stdout --to-stdout --output --path \
-            --force --no-checksum --no-name --name --no-mode \
-            --no-time --suffix --keep --unlink --delete --crc32 \
-            --no-warn --ignore-warn --quiet --silent --verbose \
-            --no-stdin --filter --checksum --no-color --mono \
+        COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 -P \
+            --fast --best --decompress --extract --test --list --ls --info \
+            --sysinfo --license --help --version --stdout --output --path \
+            --force --no-checksum --no-name --name --no-mode --no-time \
+            --suffix --keep --delete --crc32 --no-warn --ignore-warn --quiet \
+            --verbose --no-stdin --filter --checksum --no-color --mono \
             --color' -- "$cur" ) )
         return 0
     fi
diff --git a/contrib/mailman b/contrib/mailman
index 8cfec3e..e2020f9 100644
--- a/contrib/mailman
+++ b/contrib/mailman
@@ -14,8 +14,8 @@ _list_lists()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-a --advertised --virtual-host-overview -V \
-            -b --bare -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--advertised --virtual-host-overview \
+            --bare --help' -- "$cur" ) )
     fi
 
 } &&
@@ -47,9 +47,9 @@ _add_members()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--regular-members-file -r \
-            --digest-members-file -d --welcome-msg -w \
-            --admin-notify -a --help -h' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--regular-members-file \
+            --digest-members-file --welcome-msg \
+            --admin-notify --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -78,8 +78,8 @@ _remove_members()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--file -f --all -a --fromall --nouserack -n \
-            --noadminack -N --help -h' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--file --all --fromall --nouserack \
+            --noadminack --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -108,8 +108,8 @@ _find_member()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-l --listname -x --exclude --owners -w \
-            --help -h' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--listname --exclude --owners \
+            --help' -- "$cur" ) )
     fi
 
 } &&
@@ -136,8 +136,8 @@ _clone_member()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-l --listname --remove -r --admin -a \
-            --quiet -q --nomodify -n --help -h' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--listname --remove --admin \
+            --quiet --nomodify --help' -- "$cur" ) )
     fi
 
 } &&
@@ -168,9 +168,8 @@ _sync_members()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--no-change -n --welcome-msg -w \
-            --goodbye-msg -g --digest -d --notifyadmin -a -f --file -h --help' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--no-change --welcome-msg \
+            --goodbye-msg --digest --notifyadmin --file --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -187,7 +186,7 @@ _unshunt()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--help' -- "$cur" ) )
     else
         _filedir -d
     fi
@@ -204,8 +203,7 @@ _list_admins()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--all-vhost -v --all -a -h --help' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--all-vhost --all --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -222,7 +220,7 @@ _list_owners()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-w --with-listnames -m --moderators -h \
+        COMPREPLY=( $( compgen -W '--with-listnames --moderators \
             --help' -- "$cur" ) )
     else
         _mailman_lists
@@ -261,8 +259,8 @@ _list_members()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--output -o --regular -r --digest -d \
-            --nomail -n --fullnames -f --preserve -p -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--output --regular --digest \
+            --nomail --fullnames --preserve --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -291,8 +289,8 @@ _change_pw()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-a --all --domain -d --listname -l \
-            --password -p --quiet -q -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--all --domain --listname \
+            --password --quiet --help' -- "$cur" ) )
     fi
 
 } &&
@@ -307,8 +305,8 @@ _withlist()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-l --lock -i --interactive \
-            -r --run -a --all -q --quiet -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--lock --interactive \
+            --run --all --quiet --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -325,8 +323,7 @@ _newlist()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-l --language -q --quiet -h --help' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--language --quiet --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -343,7 +340,7 @@ _rmlist()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--archives -a -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--archives --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -372,8 +369,8 @@ _config_list()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--inputfile -i --outputfile -o \
-            --checkonly -c --verbose -v -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--inputfile --outputfile \
+            --checkonly --verbose --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -406,7 +403,7 @@ _arch()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--wipe -s --start -e --end -q --quiet -h \
+        COMPREPLY=( $( compgen -W '--wipe --start --end --quiet \
             --help' -- "$cur" ) )
     else
         args=$COMP_CWORD
@@ -437,7 +434,7 @@ _cleanarch()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-s --status -n --dry-run -q --quiet -h \
+        COMPREPLY=( $( compgen -W '--status --dry-run --quiet \
             --help' -- "$cur" ) )
     fi
 
@@ -465,8 +462,7 @@ _inject()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-l --listname -q --queue -h --help' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--listname --queue --help' -- "$cur" ) )
     else
         _filedir
     fi
@@ -483,7 +479,7 @@ _dumpdb()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--marshal -m --pickle -p --noprint -n -h \
+        COMPREPLY=( $( compgen -W '--marshal --pickle --noprint \
             --help' -- "$cur" ) )
     else
         _filedir
@@ -501,8 +497,7 @@ _check_db()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '--all -a --verbose -v -h --help' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--all --verbose --help' -- "$cur" ) )
     else
         _mailman_lists
     fi
@@ -534,7 +529,7 @@ _genaliases()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-q --quiet -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--quiet --help' -- "$cur" ) )
     fi
 
 } &&
@@ -549,7 +544,7 @@ _mmsitepass()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c --listcreator -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--listcreator --help' -- "$cur" ) )
     fi
 
 } &&
@@ -567,8 +562,8 @@ _qrunner()
     _split_longopt && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-r --runner --once -o \
-            -l --list -v --verbose -s --subproc -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--runner --once \
+            --list --verbose --subproc --help' -- "$cur" ) )
     fi
 
 } &&
@@ -583,8 +578,8 @@ _mailmanctl()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-n --no-restart -u --run-as-user \
-            -s --stale-lock-cleanup --quiet -q -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--no-restart --run-as-user \
+            --stale-lock-cleanup --quiet --help' -- "$cur" ) )
     else
         COMPREPLY=( $( compgen -W 'start stop restart reopen' -- "$cur" ) )
     fi
diff --git a/contrib/mc b/contrib/mc
index c834e05..a854888 100644
--- a/contrib/mc
+++ b/contrib/mc
@@ -29,12 +29,10 @@ _mc()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-a --stickchars -b --nocolor -c \
-            --color -C --colors -d --nomouse -e --edit -f \
-            --datadir -k --resetsoft -l --ftplog -P --printwd \
-            -s --slow -t --termcap -u --nosubshell -U --subshell \
-            -v --view -V --version -x --xterm -D --debuglevel -h \
-            --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--stickchars --nocolor --color --colors \
+            --nomouse --edit --datadir --resetsoft --ftplog --printwd --slow \
+            --termcap --nosubshell --subshell --view --version --xterm \
+            --debuglevel --help' -- "$cur" ) )
     else
         _filedir -d
     fi
diff --git a/contrib/mcrypt b/contrib/mcrypt
index 3ee8c41..4d0145a 100644
--- a/contrib/mcrypt
+++ b/contrib/mcrypt
@@ -49,15 +49,15 @@ _mcrypt()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-g --openpgp --openpgp-z -d \
-            --decrypt -s --keysize -o --keymode -f --keyfile \
-            -c --config -a --algorithm --algorithms-directory \
-            -m --mode --modes-directory -h --hash -k --key \
-            --noiv -b --bare -z --gzip -p --bzip2 --flush -l \
-            --doublecheck -u --unlink --nodelete -t --time -F \
-            --force --echo -r --random --list --list-keymodes \
-            --list-hash -V --verbose -q --quiet --help -v \
-            --version -L --license' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--openpgp --openpgp-z \
+            --decrypt --keysize --keymode --keyfile \
+            --config --algorithm --algorithms-directory \
+            --mode --modes-directory --hash --key \
+            --noiv --bare --gzip --bzip2 --flush \
+            --doublecheck --unlink --nodelete --time \
+            --force --echo --random --list --list-keymodes \
+            --list-hash --verbose --quiet --help \
+            --version --license' -- "$cur" ) )
     elif [[ ${COMP_WORDS[0]} == mdecrypt ]]; then
         _filedir '@(nc)'
     else
diff --git a/contrib/mdadm b/contrib/mdadm
index 0847b61..83f3f14 100644
--- a/contrib/mdadm
+++ b/contrib/mdadm
@@ -101,6 +101,8 @@ _mdadm()
             ;;
     esac
 
+    # TODO: use _split_longopt
+
     # --name=value style option
     if [[ "$cur" == *=* ]]; then
         prev=${cur/=*/}
@@ -129,44 +131,44 @@ _mdadm()
         esac
     fi
 
-    options='-h --help --help-options -V --version -v --verbose -q --quiet -b \
-        --brief -f --force -c --config= -s --scan -e --metadata= --homehost='
+    options='--help --help-options --version --verbose --quiet \
+        --brief --force --config= --scan --metadata= --homehost='
 
     if [[ "$cur" == -* ]]; then
         if [[ $COMP_CWORD -eq 1 ]] ; then
-            COMPREPLY=( $( compgen -W "$options -A --assemble -B --build -C \
-                --create -F --follow --monitor -G --grow" -- "$cur" ) )
+            COMPREPLY=( $( compgen -W "$options --assemble --build \
+                --create --monitor --grow" -- "$cur" ) )
         else
             case ${COMP_WORDS[COMP_CWORD-1]} in
                 -@(A|-assemble))
-                    COMPREPLY=( $( compgen -W "$options -u --uuid= -m \
-                        --super-minor= -N --name= -f --force -R --run \
-                        --no-degraded -a --auto -b --bitmap= --backup-file= \
-                        -U --update= --auto-update-homehost" -- "$cur" ) )
+                    COMPREPLY=( $( compgen -W "$options --uuid= \
+                        --super-minor= --name= --force --run \
+                        --no-degraded --auto --bitmap= --backup-file= \
+                        --update= --auto-update-homehost" -- "$cur" ) )
                     ;;
                 -@(B|C|G|-build|-create|-grow))
-                    COMPREPLY=( $( compgen -W "$options -n --raid-devices= -x \
-                        --spare-devices= -z --size= -c --chunk= --rounding= -l \
-                        --level= -p --layout= --parity= -b --bitmap= \
-                        --bitmap-chunk= -W --write-mostly --write-behind= \
-                        --assume-clean --backup-file= -N --name= -R --run -f \
-                        --force -a --auto" -- "$cur" ) )
+                    COMPREPLY=( $( compgen -W "$options --raid-devices= \
+                        --spare-devices= --size= --chunk= --rounding= \
+                        --level= --layout= --parity= --bitmap= \
+                        --bitmap-chunk= --write-mostly --write-behind= \
+                        --assume-clean --backup-file= --name= --run \
+                        --force --auto" -- "$cur" ) )
                     ;;
                 -@(F|-follow|-monitor))
-                    COMPREPLY=( $( compgen -W "$options -m --mail -p --program \
-                        --alert -y --syslog -d --delay -f --daemonise -i \
-                        --pid-file -1 --oneshot -t --test" -- "$cur" ) )
+                    COMPREPLY=( $( compgen -W "$options --mail --program \
+                        --alert --syslog --delay --daemonise \
+                        --pid-file --oneshot --test" -- "$cur" ) )
 
                     ;;
                 @(/dev/*|--add|--fail|--remove))
-                    COMPREPLY=( $( compgen -W "$options -a --add --re-add -r \
-                        --remove -f --fail --set-faulty" -- "$cur" ) )
+                    COMPREPLY=( $( compgen -W "$options --add --re-add \
+                        --remove --fail --set-faulty" -- "$cur" ) )
                     ;;
                 *)
-                    COMPREPLY=( $( compgen -W "$options -Q --query -D --detail \
-                        -E --examine --sparc2.2 -X --examine-bitmap -R --run \
-                        -S --stop -o --readonly -w --readwrite \
-                        --zero-superblock -t --test" -- "$cur" ) )
+                    COMPREPLY=( $( compgen -W "$options --query --detail \
+                        --examine --sparc2.2 --examine-bitmap --run \
+                        --stop --readonly --readwrite \
+                        --zero-superblock --test" -- "$cur" ) )
                     ;;
             esac
         fi
diff --git a/contrib/mock b/contrib/mock
index 0c94e1b..a5ff16f 100644
--- a/contrib/mock
+++ b/contrib/mock
@@ -60,16 +60,15 @@ _mock()
     $split && return 0
 
     if [[ "$cur" == -* ]] ; then
-        COMPREPLY=( $( compgen -W '--version -h --help --rebuild \
+        COMPREPLY=( $( compgen -W '--version --help --rebuild \
             --buildsrpm --shell --chroot --clean --init \
             --installdeps --install --update --orphanskill \
-            --copyin --copyout -r --root --offline --no-clean \
+            --copyin --copyout --root --offline --no-clean \
             --cleanup-after --no-cleanup-after --arch --target \
-            -D --define --with --without --resultdir --uniqueext \
+            --define --with --without --resultdir --uniqueext \
             --configdir --rpmbuild_timeout --unpriv --cwd --spec \
-            --sources -v --verbose -q --quiet --trace \
-            --enable-plugin --disable-plugin --print-root-path' \
-            -- "$cur" ) )
+            --sources --verbose --quiet --trace --enable-plugin \
+            --disable-plugin --print-root-path' -- "$cur" ) )
     else
         _filedir '?(no)src.rpm'
     fi
diff --git a/contrib/net-tools b/contrib/net-tools
index b3bf861..7f00dc5 100644
--- a/contrib/net-tools
+++ b/contrib/net-tools
@@ -27,9 +27,8 @@ _mii_tool()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-v --verbose -V --version -R \
-            --reset -r --restart -w  --watch -l --log -A \
-            --advertise -F --force' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--verbose --version --reset --restart \
+            --watch --log --advertise --force' -- "$cur" ) )
     else
         _available_interfaces -a
     fi
@@ -59,11 +58,10 @@ _mii_diag()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A --advertise -F --fixed-speed -a \
-            --all-interfaces -s --status -D --debug -g \
-            --read-parameters -G --set-parameters -M  --msg-level \
-            -p --phy -r  --restart -R  --reset -v -V -w --watch \
-            -? --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--advertise --fixed-speed --all-interfaces \
+            --status --debug --read-parameters --set-parameters --msg-level \
+            --phy --restart --reset --verbose --version --watch --help' \
+            -- "$cur" ) )
     else
         _available_interfaces -a
     fi
diff --git a/contrib/pkg-config b/contrib/pkg-config
index 1f8cc83..3e32fc4 100644
--- a/contrib/pkg-config
+++ b/contrib/pkg-config
@@ -34,8 +34,7 @@ _pkg_config()
             --exists --uninstalled --atleast-version \
             --exact-version --max-version --list-all --debug \
             --print-errors --silence-errors --errors-to-stdout \
-            --print-provides --print-requires -? --help --usage' \
-            -- "$cur") )
+            --print-provides --print-requires --help --usage' -- "$cur") )
     else
         COMPREPLY=( $( compgen -W "$( pkg-config --list-all \
             2>/dev/null | awk '{print $1}' )" -- "$cur" ) )
diff --git a/contrib/postgresql b/contrib/postgresql
index 125b6f6..79692cb 100644
--- a/contrib/postgresql
+++ b/contrib/postgresql
@@ -52,9 +52,9 @@ _createdb()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-D -T -E -h -p -U -W -e -q \
-            --tablespace --template --encoding --host --port \
-            --username --password --echo --quiet --help --version' -- "$cur" ))
+        COMPREPLY=( $( compgen -W '--tablespace --template --encoding --host \
+            --port --username --password --echo --quiet --help --version' \
+            -- "$cur" ) )
     else
         _pg_databases
     fi
@@ -91,9 +91,8 @@ _dropdb()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-h -p -U -W -i -e -q \
-            --host --port --username --password --interactive \
-            --echo --quiet --help --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--host --port --username --password \
+            --interactive --echo --quiet --help --version' -- "$cur" ) )
     else
         _pg_databases
     fi
@@ -144,16 +143,12 @@ _psql()
 
     if [[ "$cur" == -* ]]; then
         # return list of available options
-        COMPREPLY=( $( compgen -W '-a --echo-all -A --no-align \
-            -c --command -d --dbname -e --echo-queries \
-            -E --echo-hidden -f --file -F --field-separator \
-            -h --host -H --html -l --list -L --log-file -n \
-            -o --output -p --port -P --pset -q --quiet \
-            -R --record-separator -s --single-step \
-            -S --single-line -t --tuples-only -T --table-attr \
-            -U --username -v --set --variable -V --version \
-            -W --password -x --expanded -X --no-psqlrc \
-            -1 --single-transaction -? --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--echo-all --no-align --command --dbname \
+            --echo-queries --echo-hidden --file --field-separator --host \
+            --html --list --log-file --output --port --pset --quiet \
+            --record-separator --single-step --single-line --tuples-only \
+            --table-attr --username --set --version --password --expanded \
+            --no-psqlrc --single-transaction --help' -- "$cur" ) )
     else
         # return list of available databases
         _pg_databases
diff --git a/contrib/qemu b/contrib/qemu
index c129f0c..1314b68 100644
--- a/contrib/qemu
+++ b/contrib/qemu
@@ -111,7 +111,7 @@ _qemu()
             -s -p -S -d -hdachs -L -std-vga -no-acpi -no-reboot -loadvm \
             -semihosting -cpu -bt -vga -drive -startdate -name -curses \
             -no-frame -no-quit -bootp -echr -no-shutdown -icount -g \
-            -prom-env -h -help -version -numa -mtdblock -sd -pflash \
+            -prom-env -help -version -numa -mtdblock -sd -pflash \
             -device -uuid -alt-grab -sdl -portrait -rtc-td-hack -no-hpet \
             -balloon -acpitable -smbios -singlestep -gdb -hdachs -bios \
             -kernel-kqemu -enable-kqemu -enable-kvm -clock -watchdog \
diff --git a/contrib/repomanage b/contrib/repomanage
index 8cb5020..7c2b9fe 100644
--- a/contrib/repomanage
+++ b/contrib/repomanage
@@ -12,8 +12,8 @@ _repomanage()
     [[ "$prev" == -@(h|-help|k|-keep) ]] && return 0
 
     if [[ "$cur" == -* ]] ; then
-        COMPREPLY=( $( compgen -W '-o --old -n --new -s --space -k \
-            --keep -c --nocheck -h --help' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--old --new --space \
+            --keep --nocheck --help' -- "$cur" ) )
     else
         _filedir -d
     fi
diff --git a/contrib/rsync b/contrib/rsync
index c8dc6cf..ed36511 100644
--- a/contrib/rsync
+++ b/contrib/rsync
@@ -30,9 +30,7 @@ _rsync()
 
     case "$cur" in
     -*)
-        COMPREPLY=( $( compgen -W '-v -q  -c -a -r -R -b -u -l -L -H \
-            -p -o -g -D -t -S -n -W -x -B -e -C -I -T -P \
-            -z -h -4 -6 --verbose --quiet --checksum \
+        COMPREPLY=( $( compgen -W '-D --verbose --quiet --checksum \
             --archive --recursive --relative --backup \
             --backup-dir --suffix= --update --links \
             --copy-links --copy-unsafe-links --safe-links \
@@ -51,7 +49,7 @@ _rsync()
             --address= --config= --port= --blocking-io \
             --no-blocking-io --stats --progress \
             --log-format= --password-file= --bwlimit= \
-            --write-batch= --read-batch= --help' -- "$cur" ))
+            --write-batch= --read-batch= --ipv4 --ipv6 --help' -- "$cur" ) )
         ;;
     *:*)
         # find which remote shell is used
diff --git a/contrib/samba b/contrib/samba
index 7256906..95685b7 100644
--- a/contrib/samba
+++ b/contrib/samba
@@ -190,8 +190,8 @@ _smbcquotas()
 
     if [[ "$cur" == -* ]]; then
         COMPREPLY=( $( compgen -W '-u -L -F -S -n -t -v -h --help -V \
-            -s -d --debuglevel -l --log-basename -N -k -A \
-            --authentication-file -U --user' -- "$cur" ) )
+            -s --debuglevel --log-basename -N -k \
+            --authentication-file --user' -- "$cur" ) )
     fi
 }
 complete -F _smbcquotas smbcquotas
diff --git a/contrib/shadow b/contrib/shadow
index c72718d..0d43986 100644
--- a/contrib/shadow
+++ b/contrib/shadow
@@ -43,12 +43,11 @@ _useradd()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-b --base-dir -c --comment -d --home\
-            -D --defaults -e --expiredate -f --inactive -g --gid \
-            -G --groups -h --help -k --skel -K --key -l -M \
-            -m --create-home -N --no-user-group -o --non-unique \
-            -p --password -r --system -s --shell -u --uid \
-            -U --user-group -Z --selinux-user' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--base-dir --comment --home-dir --defaults \
+            --expiredate --inactive --gid --groups --help --skel --key \
+            --no-log-init --create-home --no-create-home --no-user-group \
+            --non-unique --password --system --shell --uid --user-group \
+            --selinux-user' -- "$cur" ) )
         return 0
     fi
 } &&
@@ -94,11 +93,10 @@ _usermod()
 
     if [[ "$cur" == -* ]]; then
         # TODO: -U/--unlock, -p/--password, -L/--lock mutually exclusive
-        COMPREPLY=( $( compgen -W '-a --append -c --comment -d --home \
-            -e --expiredate -f --inactive -g --gid -G --groups \
-            -h --help -l --login -L --lock -o --non-unique \
-            -p --password -s --shell -u --uid -U --unlock \
-            -Z --selinux-user' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--append --comment --home --expiredate \
+            --inactive --gid --groups --help --login --lock --move-home \
+            --non-unique --password --shell --uid --unlock --selinux-user' \
+            -- "$cur" ) )
         return 0
     fi
 
@@ -115,8 +113,7 @@ _userdel()
     cur=`_get_cword`
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-f --force -h --help -r --remove' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--force --help --remove' -- "$cur" ) )
         return 0
     fi
 
@@ -144,9 +141,8 @@ _chage()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d --lastday -E --expiredate \
-            -h --help -I --inactive -l --list -m --mindays \
-            -M --maxdays -W --warndays' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--lastday --expiredate --help --inactive \
+            --list --mindays --maxdays --warndays' -- "$cur" ) )
         return 0
     fi
 
@@ -204,8 +200,8 @@ _chpasswd()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c --crypt-method -e --encrypted \
-            -h --help -m --md5 -s --sha-rounds' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--crypt-method --encrypted \
+            --help --md5 --sha-rounds' -- "$cur" ) )
         return 0
     fi
 } &&
@@ -236,8 +232,8 @@ _newusers()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c --crypt-method --r --system \
-            -s --sha-rounds' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--crypt-method --help --system \
+            --sha-rounds' -- "$cur" ) )
         return 0
     fi
 
@@ -285,9 +281,8 @@ _groupadd()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-f --force -g --gid -h --help \
-            -K --key -o --non-unique -p --password -r --system' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--force --gid --help \
+            --key --non-unique --password --system' -- "$cur" ) )
         return 0
     fi
 } &&
@@ -316,8 +311,8 @@ _groupmod()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-g --gid -h --help -n --new-name \
-            -o --non-unique -p --password' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--gid --help --new-name \
+            --non-unique --password' -- "$cur" ) )
         return 0
     fi
 
@@ -423,8 +418,8 @@ _vipw()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-g --group -h --help -p --passwd \
-            -q --quiet -s --shadow' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--group --help --passwd \
+            --quiet --shadow' -- "$cur" ) )
         return 0
     fi
 } &&
@@ -454,8 +449,8 @@ _faillog()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-a --all -h --help -l --lock-time \
-            -m --maximum -r --reset -t --time -u --user' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--all --help --lock-time \
+            --maximum --reset --time --user' -- "$cur" ) )
         return 0
     fi
 } &&
@@ -485,8 +480,7 @@ _lastlog()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-b --before -h --help -t --time \
-            -u --user' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--before --help --time --user' -- "$cur" ) )
         return 0
     fi
 } &&
diff --git a/contrib/smartctl b/contrib/smartctl
index 41c9f19..543ac36 100644
--- a/contrib/smartctl
+++ b/contrib/smartctl
@@ -125,14 +125,11 @@ _smartctl()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-h --help --usage -V --version \
-                        --copyright --license-i --info -a --all -q \
-                        --quietmode -d --device -T --tolerance -b --badsum \
-                        -r --report -n --nocheck -s --smart -o --offlineauto \
-                        -S --saveauto -H --health -c --capabilities -A \
-                        --attributes -l --log -v --vendorattribute -F \
-                        --firmwarebug -P --presets -t --test -C \
-                        --captive -X --abort' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--help --version --info --all --quietmode \
+            --device --tolerance --badsum --report --nocheck --smart \
+            --offlineauto --saveauto --health --capabilities --attributes \
+            --log --vendorattribute --firmwarebug --presets --test --captive \
+            --abort' -- "$cur" ) )
     else
         cur=${cur:=/dev/}
         _filedir
diff --git a/contrib/strace b/contrib/strace
index 7925890..fd2a12c 100644
--- a/contrib/strace
+++ b/contrib/strace
@@ -84,7 +84,7 @@ _strace()
         esac
 
         if [[ "$cur" == -* ]]; then
-            COMPREPLY=( $( compgen -W '-c -d -f -ff -F -h --help -i -q \
+            COMPREPLY=( $( compgen -W '-c -d -f -ff -F --help -i -q \
                 -r -t -tt -ttt -T -v -V -x -xx -a -e -o -O -p \
                 -s -S -u -E' -- "$cur" ) )
         else
diff --git a/contrib/wodim b/contrib/wodim
index 6359ec5..80a3729 100644
--- a/contrib/wodim
+++ b/contrib/wodim
@@ -35,7 +35,7 @@ _cdrecord()
         esac
     fi
 
-    generic_options=(-version -v -V -d -silent -s -force -immed -dummy \
+    generic_options=(-version -v -V -d -silent -force -immed -dummy \
         -dao -raw -raw96r -raw96p -raw16 -multi -msinfo -toc \
         -atip -fix -nofix -waiti -load -lock -eject -format \
         -setdropts -checkdrive -prcap -inq -scanbus -reset \
diff --git a/contrib/xrandr b/contrib/xrandr
index cd5c05b..1036945 100644
--- a/contrib/xrandr
+++ b/contrib/xrandr
@@ -30,15 +30,12 @@ _xrandr()
 
     case "$cur" in
         *)
-            COMPREPLY=( $(compgen -W '-d -display -help -o \
-                    --orientation -q --query -s --size\
-                    -r --rate -v --version -x -y --screen \
-                    --verbose --dryrun --prop --fb \
-                    --fbmm --dpi --output --auto --mode \
-                    --preferred --pos --reflect --rotate \
-                    --left-of --right-of --above --below \
-                    --same-as --set --off --crtc --newmode \
-                    --rmmode --addmode --delmode' -- "$cur"))
+            COMPREPLY=( $(compgen -W '-display -help --orientation --query \
+                --size --rate --version -x -y --screen --verbose --dryrun \
+                --prop --fb --fbmm --dpi --output --auto --mode --preferred \
+                --pos --reflect --rotate --left-of --right-of --above --below \
+                --same-as --set --off --crtc --newmode --rmmode --addmode \
+                --delmode' -- "$cur") )
             return 0
             ;;
     esac
diff --git a/contrib/xz b/contrib/xz
index f271986..61899a7 100644
--- a/contrib/xz
+++ b/contrib/xz
@@ -8,13 +8,12 @@ _xz()
     local prev=${COMP_WORDS[COMP_CWORD-1]}
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-z --compress -d --decompress \
-            -t --test -l --list -k --keep -f --force -c --stdout \
-            -S --suffix --files --files0 -F --format -C --check \
-            -0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -M --memory --lzma1 \
-            --lzma2 --x86 --powerpc --ia64 --arm --armthumb \
-            --sparc --delta -q --quiet -v --verbose -h --help \
-            -H --long-help -V --version' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--compress --decompress --test --list \
+            --keep --force --stdout --suffix --files --files0 --format --check \
+            -0 -1 -2 -3 -4 -5 -6 -7 -8 -9 --fast --best --extreme --memory \
+            --lzma1 --lzma2 --x86 --powerpc --ia64 --arm --armthumb --sparc \
+            --delta --quiet --verbose --no-warn --help --long-help --version' \
+            -- "$cur" ) )
         return 0
     fi
 
@@ -69,8 +68,7 @@ _xzdec()
     local prev=${COMP_WORDS[COMP_CWORD-1]}
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-M --memory -h --help -V --version' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--memory --help --version' -- "$cur" ) )
         return 0
     fi
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list