diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-01 09:30:21 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-01 09:32:30 +0530 |
commit | 284a60c51600cdee55f025270f8b223d2c45a154 (patch) | |
tree | 0522deeada1b3b54dbd0e44aedd3eb0be7add413 /yt_dlp/options.py | |
parent | 44f14eb43e1601342955bbb4f34cee523cb8a874 (diff) | |
download | hypervideo-pre-284a60c51600cdee55f025270f8b223d2c45a154.tar.lz hypervideo-pre-284a60c51600cdee55f025270f8b223d2c45a154.tar.xz hypervideo-pre-284a60c51600cdee55f025270f8b223d2c45a154.zip |
[options] Fix aliases to `--config-location`
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r-- | yt_dlp/options.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index dfaa9ca4f..386e8308e 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -114,6 +114,11 @@ def parseOpts(overrideArguments=None, ignore_config_files='if_override'): if user_conf is not None: root.configs.pop(user_conf) + try: + root.configs[0].load_configs() # Resolve any aliases using --config-location + except ValueError as err: + raise root.parser.error(err) + opts, args = root.parse_args() except optparse.OptParseError: with contextlib.suppress(optparse.OptParseError): |