[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-271-g5a6b9a2

Ville Skyttä ville.skytta at iki.fi
Wed May 4 21:20:17 UTC 2011


The following commit has been merged in the master branch:
commit db86b76ebaf9196dab651a51e363a5e9cebd3203
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed May 4 23:56:38 2011 +0300

    fusermount: Use _parse_help, add basic test case.

diff --git a/completions/fuse b/completions/fuse
index 386955e..45b7423 100644
--- a/completions/fuse
+++ b/completions/fuse
@@ -20,7 +20,7 @@ _fusermount()
     esac
 
     if [[ "$cur" == -* ]] ; then
-        COMPREPLY=( $( compgen -W '-h -V -o -u -q -z' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
     else
         _filedir -d
     fi
diff --git a/test/completion/fusermount.exp b/test/completion/fusermount.exp
new file mode 100644
index 0000000..7b9e039
--- /dev/null
+++ b/test/completion/fusermount.exp
@@ -0,0 +1 @@
+assert_source_completions fusermount
diff --git a/test/lib/completions/aclocal.exp b/test/lib/completions/fusermount.exp
similarity index 77%
copy from test/lib/completions/aclocal.exp
copy to test/lib/completions/fusermount.exp
index da133aa..f6ac4f5 100644
--- a/test/lib/completions/aclocal.exp
+++ b/test/lib/completions/fusermount.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "aclocal "
+assert_complete_any "fusermount "
 
 
 sync_after_int

-- 
bash-completion



More information about the Bash-completion-commits mailing list