[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-265-g08a4c0e

Ville Skyttä ville.skytta at iki.fi
Wed May 4 19:54:28 UTC 2011


The following commit has been merged in the master branch:
commit 08a4c0eff5de1aa6ae9c52ddeba45c8a82558488
Author: Ville Skyttä <ville.skytta at iki.fi>
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



More information about the Bash-completion-commits mailing list