[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-380-g9e4605b

Ville Skyttä ville.skytta at iki.fi
Sat Jun 18 12:54:02 UTC 2011


The following commit has been merged in the master branch:
commit 50a0506c5bf3e7873485ec595c59a4d7e80968d2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Jun 18 15:34:20 2011 +0300

    mysql: The argument to -p/--password is not mandatory.

diff --git a/completions/mysql b/completions/mysql
index 00344b5..646b531 100644
--- a/completions/mysql
+++ b/completions/mysql
@@ -47,8 +47,7 @@ _mysql()
         --ssl-ca|--ssl-cert|--ssl-cipher|--ssl-key|\
         --connect_timeout|--max_allowed_packet|--prompt|\
         --net_buffer_length|--select_limit|--max_join_size|\
-        --server-arg|--debug|--delimiter|--execute|-e|--pager|\
-        --password|-p)
+        --server-arg|--debug|--delimiter|--execute|-e|--pager)
             # Argument required but no completions available
             return 0
             ;;
@@ -61,7 +60,7 @@ _mysql()
     case $cur in
         --*)
             # TODO: fix _parse_help
-            local help=$(_parse_help "$1"|sed -e '/--password/s/$/=/' -e 's/[.)]*$//')
+            local help=$(_parse_help "$1"|sed -e 's/[.)]*$//')
             help+=" --skip-comment --skip-ssl"
 
             COMPREPLY=( $( compgen -W "$help" -- "$cur" ) )

-- 
bash-completion



More information about the Bash-completion-commits mailing list