aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-02-24 06:04:27 +0700
committerSergey M․ <dstftw@gmail.com>2017-02-24 06:04:27 +0700
commitbe5df5ee311b3ad027f5d59fe077969babd0aa53 (patch)
tree539fc0e678d9120ec1d7aa75f37f6b021daa5adf /youtube_dl/__init__.py
parentf2980fddeb587f113afe15cc3ecf4bfc3911ca67 (diff)
Suppress help for all deprecated options and print warning when used
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index f91d29a7b..0c401baa6 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -416,6 +416,9 @@ def _real_main(argv=None):
'config_location': opts.config_location,
'geo_bypass': opts.geo_bypass,
'geo_bypass_country': opts.geo_bypass_country,
+ # just for deprecation check
+ 'autonumber': opts.autonumber if opts.autonumber is True else None,
+ 'usetitle': opts.usetitle if opts.usetitle is True else None,
}
with YoutubeDL(ydl_opts) as ydl: