summaryrefslogtreecommitdiff
path: root/completions/btdownloadheadless.py
diff options
context:
space:
mode:
Diffstat (limited to 'completions/btdownloadheadless.py')
-rw-r--r--completions/btdownloadheadless.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/btdownloadheadless.py b/completions/btdownloadheadless.py
index c15de1a4..a470e535 100644
--- a/completions/btdownloadheadless.py
+++ b/completions/btdownloadheadless.py
@@ -6,14 +6,14 @@ _btdownload()
_init_completion || return
case $prev in
- --responsefile|--saveas)
+ --responsefile | --saveas)
_filedir
return
;;
esac
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--max_uploads --keepalive_interval
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '--max_uploads --keepalive_interval
--download_slice_size --request_backlog --max_message_length
--ip --minport --maxport --responsefile --url --saveas --timeout
--timeout_check_interval --max_slice_length --max_rate_period
@@ -21,12 +21,12 @@ _btdownload()
--min_peers --http_timeout --max_initiate --max_allow_in
--check_hashes --max_upload_rate --snub_time --spew
--rarest_first_cutoff --min_uploads --report_hash_failures' \
- -- "$cur") )
+ -- "$cur"))
else
_filedir
fi
} &&
-complete -F _btdownload btdownloadheadless.py btdownloadcurses.py \
- btdownloadgui.py
+ complete -F _btdownload btdownloadheadless.py btdownloadcurses.py \
+ btdownloadgui.py
# ex: filetype=sh