The following commit has been merged in the master branch:
commit 08a4c0eff5de1aa6ae9c52ddeba45c8a82558488
Author: Ville Skyttä <[email protected]>
Date:   Wed May 4 22:51:02 2011 +0300

    sysbench: Use _parse_help.

diff --git a/completions/sysbench b/completions/sysbench
index 82a0136..496a39b 100644
--- a/completions/sysbench
+++ b/completions/sysbench
@@ -116,14 +116,10 @@ _sysbench()
         fi
     done
 
-    local opts="--num-threads= --max-requests= --max-time= --thread-stack-size=
-        --init-rng= --debug= --validate= --help --version"
-
+    local opts=$( _parse_help "$1" )
     if [[ $test ]]; then
         local help=( $( _parse_help "$1" "--test=$test help" ) )
-        opts+=" ${help[@]} prepare run cleanup help version"
-    else
-        opts+=" --test="
+        opts="${opts[@]/--test=/} ${help[@]} prepare run cleanup help version"
     fi
 
     if [[ "$cur" == -* || ! $test ]]; then

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to