mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-15 08:58:28 +00:00
Remove redundant --load-info
yt-dlp allows to shorten options
This commit is contained in:
parent
0ea62b57ff
commit
40265103ec
@ -2367,7 +2367,6 @@ #### Old aliases
|
||||
--dump-headers --print-traffic
|
||||
--dump-intermediate-pages --dump-pages
|
||||
--force-write-download-archive --force-write-archive
|
||||
--load-info --load-info-json
|
||||
--no-clean-infojson --no-clean-info-json
|
||||
--no-split-tracks --no-split-chapters
|
||||
--no-write-srt --no-write-subs
|
||||
|
@ -6,7 +6,7 @@ __yt_dlp()
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
opts="{{flags}}"
|
||||
keywords=":ytfavorites :ytrecommended :ytsubscriptions :ytwatchlater :ythistory"
|
||||
fileopts="-a|--batch-file|--download-archive|--cookies|--load-info"
|
||||
fileopts="-a|--batch-file|--download-archive|--cookies|--load-info-json"
|
||||
diropts="--cache-dir"
|
||||
|
||||
if [[ ${prev} =~ ${fileopts} ]]; then
|
||||
|
@ -1526,7 +1526,7 @@ def _preset_alias_callback(option, opt_str, value, parser):
|
||||
action='store_false', dest='getcomments',
|
||||
help='Do not retrieve video comments unless the extraction is known to be quick (Alias: --no-get-comments)')
|
||||
filesystem.add_option(
|
||||
'--load-info-json', '--load-info',
|
||||
'--load-info-json',
|
||||
dest='load_info_filename', metavar='FILE',
|
||||
help='JSON file containing the video information (created with the "--write-info-json" option)')
|
||||
filesystem.add_option(
|
||||
|
Loading…
Reference in New Issue
Block a user