[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 14e373d3f14c9fe1946dc4ab5de3689e009de670

David Paleino dapal at debian.org
Sun Nov 22 07:30:46 UTC 2009


The following commit has been merged in the master branch:
commit 9a8fb49fe4f2e624ad7892439708836496318d6f
Author: David Paleino <dapal at debian.org>
Date:   Sun Nov 22 08:22:58 2009 +0100

    contrib/cpio: added missing completions for -?, --help, --license, --usage, --version and (-p) --to-stdout (Debian: #557436)

diff --git a/CHANGES b/CHANGES
index 9a9fa3c..d5570d4 100644
--- a/CHANGES
+++ b/CHANGES
@@ -11,6 +11,8 @@ bash-completion (2.x)
   * Added munindoc completion to contrib/munin-node, thanks to Tom
     Feiner (Debian: #553371)
   * Added colordiff completion, same as diff
+  * contrib/cpio: added missing completions for -?, --help, --license, --usage,
+    --version and (-p) --to-stdout (Debian: #557436)
 
   [ Ville Skyttä ]
   * Create bz2 dist tarball too.
diff --git a/contrib/cpio b/contrib/cpio
index f28b1b2..08e44ca 100644
--- a/contrib/cpio
+++ b/contrib/cpio
@@ -39,7 +39,8 @@ _cpio()
     $split && return 0
 
     if [ $COMP_CWORD -eq 1 ]; then
-        COMPREPLY=( $( compgen -W '-o --create -i --extract -p --pass-through' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '-o --create -i --extract -p --pass-through \
+                                   -? --help --license --usage --version' -- "$cur" ) )
     else
         case ${COMP_WORDS[1]} in
             -@(o|-create))
@@ -69,6 +70,7 @@ _cpio()
                         --force-local --no-absolute-filenames\
                         --sparse --only-verify-crc --quiet\
                         --rsh-command --help\
+                        --to-stdout \
                         --version' -- "$cur" ) )
                 fi
                 ;;

-- 
bash-completion



More information about the Bash-completion-commits mailing list