mirror of https://github.com/aria2/aria2
bash_completion: Add missing options which takes one of pre-defined values
parent
099ba15315
commit
ede9932a10
|
@ -55,6 +55,14 @@ _aria2c()
|
||||||
COMPREPLY=( $( compgen -W 'default full hide' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W 'default full hide' -- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
--min-tls-version)
|
||||||
|
COMPREPLY=( $( compgen -W 'SSLv3 TLSv1 TLSv1.1 TLSv1.2' -- "$cur" ) )
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
--console-log-level)
|
||||||
|
COMPREPLY=( $( compgen -W 'debug info notice warn error' -- "$cur" ) )
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
--dir)
|
--dir)
|
||||||
_filedir -d
|
_filedir -d
|
||||||
return 0
|
return 0
|
||||||
|
|
|
@ -98,7 +98,9 @@ _aria2c()
|
||||||
'--event-poll',
|
'--event-poll',
|
||||||
'--follow-torrent',
|
'--follow-torrent',
|
||||||
'--stream-piece-selector',
|
'--stream-piece-selector',
|
||||||
'--download-result']:
|
'--download-result',
|
||||||
|
'--min-tls-version',
|
||||||
|
'--console-log-level']:
|
||||||
opt = opts[long_opt]
|
opt = opts[long_opt]
|
||||||
output_value_case(out, opt.long_opt, opt.values)
|
output_value_case(out, opt.long_opt, opt.values)
|
||||||
# Complete directory
|
# Complete directory
|
||||||
|
|
Loading…
Reference in New Issue