mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-07 23:35:11 +01:00
[misc] Fix zsh path argument completion (#14953)
Closes #14952 Authored by: matyb08
This commit is contained in:
parent
4b4223b436
commit
c96e9291ab
1 changed files with 7 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ def build_completion(opt_parser):
|
|||
for opt in group.option_list]
|
||||
opts_file = [opt for opt in opts if opt.metavar == 'FILE']
|
||||
opts_dir = [opt for opt in opts if opt.metavar == 'DIR']
|
||||
opts_path = [opt for opt in opts if opt.metavar == 'PATH']
|
||||
|
||||
fileopts = []
|
||||
for opt in opts_file:
|
||||
|
|
@ -26,6 +27,12 @@ def build_completion(opt_parser):
|
|||
if opt._long_opts:
|
||||
fileopts.extend(opt._long_opts)
|
||||
|
||||
for opt in opts_path:
|
||||
if opt._short_opts:
|
||||
fileopts.extend(opt._short_opts)
|
||||
if opt._long_opts:
|
||||
fileopts.extend(opt._long_opts)
|
||||
|
||||
diropts = []
|
||||
for opt in opts_dir:
|
||||
if opt._short_opts:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue