From 40265103ec99190ddf9e45a9d9c56e79de905bde Mon Sep 17 00:00:00 2001 From: sepro Date: Wed, 6 Aug 2025 22:23:48 +0200 Subject: [PATCH] Remove redundant `--load-info` yt-dlp allows to shorten options --- README.md | 1 - devscripts/bash-completion.in | 2 +- yt_dlp/options.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ebd1bffde..ef63a5b43 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/devscripts/bash-completion.in b/devscripts/bash-completion.in index bb66c2095..994bb4e72 100644 --- a/devscripts/bash-completion.in +++ b/devscripts/bash-completion.in @@ -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 diff --git a/yt_dlp/options.py b/yt_dlp/options.py index 13ba445df..29b37b425 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -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(