The following commit has been merged in the master branch:
commit 0a84ad771dcd063c48b8f1dca4c4d7cb2b01814b
Author: Ville Skyttä <[email protected]>
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
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits