[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-171-gc875723

Ville Skyttä ville.skytta at iki.fi
Mon May 2 09:55:25 UTC 2011


The following commit has been merged in the master branch:
commit 0a84ad771dcd063c48b8f1dca4c4d7cb2b01814b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon May 2 11:22:49 2011 +0300

    mc: Parse help from --help-all instead of --help.

diff --git a/completions/mc b/completions/mc
index 2c14d2e..cec0c4d 100644
--- a/completions/mc
+++ b/completions/mc
@@ -16,7 +16,7 @@ _mc()
             # argument required but no completions available
             return 0
             ;;
-        -h|--help|-V|--version)
+        -h|--help|--help-*|-V|--version)
             # all other arguments are noop with these
             return 0
             ;;
@@ -25,7 +25,8 @@ _mc()
     $split && return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help-all )' \
+            -- "$cur" ) )
     else
         _filedir -d
     fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list