summaryrefslogtreecommitdiffstats
path: root/completions/btdownloadheadless.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:19 +0000
commit6c09f2a45c5541e9c207d14fc7aa21a4a0066bde (patch)
tree0221189d367bf661f6f9493c4f17a03f0dd4b7d2 /completions/btdownloadheadless.py
parentReleasing progress-linux version 1:2.11-8~progress7.99u1. (diff)
downloadbash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.tar.xz
bash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.zip
Merging upstream version 1:2.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'completions/btdownloadheadless.py')
-rw-r--r--completions/btdownloadheadless.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/completions/btdownloadheadless.py b/completions/btdownloadheadless.py
index a470e53..f5b791e 100644
--- a/completions/btdownloadheadless.py
+++ b/completions/btdownloadheadless.py
@@ -1,32 +1,31 @@
# btdownloadheadless(1) completion -*- shell-script -*-
-_btdownload()
+_comp_cmd_btdownload()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
case $prev in
--responsefile | --saveas)
- _filedir
+ _comp_compgen_filedir
return
;;
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '--max_uploads --keepalive_interval
+ _comp_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
--bind --upload_rate_fudge --display_interval --rerequest_interval
--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"))
+ --rarest_first_cutoff --min_uploads --report_hash_failures'
else
- _filedir
+ _comp_compgen_filedir
fi
} &&
- complete -F _btdownload btdownloadheadless.py btdownloadcurses.py \
+ complete -F _comp_cmd_btdownload btdownloadheadless.py btdownloadcurses.py \
btdownloadgui.py
# ex: filetype=sh