Skip to content

Commit

Permalink
bash_completion: Add missing options which takes one of pre-defined v…
Browse files Browse the repository at this point in the history
…alues
  • Loading branch information
tatsuhiro-t committed Aug 2, 2016
1 parent 099ba15 commit ede9932
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions doc/bash_completion/aria2c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ _aria2c()
COMPREPLY=( $( compgen -W 'default full hide' -- "$cur" ) )
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)
_filedir -d
return 0
Expand Down
4 changes: 3 additions & 1 deletion doc/bash_completion/make_bash_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def output_case(out, opts):
'--event-poll',
'--follow-torrent',
'--stream-piece-selector',
'--download-result']:
'--download-result',
'--min-tls-version',
'--console-log-level']:
opt = opts[long_opt]
output_value_case(out, opt.long_opt, opt.values)
# Complete directory
Expand Down

0 comments on commit ede9932

Please sign in to comment.