summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-benchmarks/siege/files')
-rw-r--r--app-benchmarks/siege/files/siege.bash-completion25
1 files changed, 25 insertions, 0 deletions
diff --git a/app-benchmarks/siege/files/siege.bash-completion b/app-benchmarks/siege/files/siege.bash-completion
new file mode 100644
index 000000000000..612f22d8f3c4
--- /dev/null
+++ b/app-benchmarks/siege/files/siege.bash-completion
@@ -0,0 +1,25 @@
+# $Id$
+# siege completion
+
+_siege() {
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="-V --version -h --help -C --config -v --verbose -g --get \
+ -c --concurrent -i --internet -d --delay -b --benchmark -r --reps \
+ -t --time -l --log -m --mark -H --header -R --rc -f --file -u --url"
+
+ if [[ "${cur}" == -* ]] || [ ${COMP_CWORD} -eq 1 ]; then
+ COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
+ fi
+
+ case "${prev}" in
+ -R|--rc|-f|--file)
+ COMPREPLY=($(compgen -o filenames -A file -- ${cur}))
+ ;;
+ esac
+}
+complete -F _siege siege
+
+# vim: set ft=sh tw=80 ts=4 sw=4 :