[Bash-completion-commits] [bash-completion] 01/03: createdb, dropdb: Drop -o default, it does not appear to do anything good here

Ville Skyttä scop-guest at moszumanska.debian.org
Sun Jan 18 20:15:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit e71b4522d18306dfa98b013441122910a1166ea9
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Jan 18 22:01:47 2015 +0200

    createdb, dropdb: Drop -o default, it does not appear to do anything good here
---
 completions/psql                  | 4 ++--
 test/lib/completions/createdb.exp | 4 +---
 test/lib/completions/dropdb.exp   | 4 +---
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/completions/psql b/completions/psql
index c462bf0..a43cdaf 100644
--- a/completions/psql
+++ b/completions/psql
@@ -51,7 +51,7 @@ _createdb()
         _pg_databases
     fi
 } &&
-complete -F _createdb -o default createdb
+complete -F _createdb createdb
 
 # dropdb(1) completion
 #
@@ -84,7 +84,7 @@ _dropdb()
         _pg_databases
     fi
 } &&
-complete -F _dropdb -o default dropdb
+complete -F _dropdb dropdb
 
 # psql(1) completion
 #
diff --git a/test/lib/completions/createdb.exp b/test/lib/completions/createdb.exp
index aafff1b..234817f 100644
--- a/test/lib/completions/createdb.exp
+++ b/test/lib/completions/createdb.exp
@@ -11,9 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "createdb "
-
-
+assert_complete_any "createdb -"
 sync_after_int
 
 
diff --git a/test/lib/completions/dropdb.exp b/test/lib/completions/dropdb.exp
index 8f2d5bf..d68cd48 100644
--- a/test/lib/completions/dropdb.exp
+++ b/test/lib/completions/dropdb.exp
@@ -11,9 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "dropdb "
-
-
+assert_complete_any "dropdb -"
 sync_after_int
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list