aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py5
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):