Suppress help for all deprecated options and print warning when used

This commit is contained in:
Sergey M․ 2017-02-24 06:04:27 +07:00
parent f2980fddeb
commit be5df5ee31
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
3 changed files with 20 additions and 9 deletions

View file

@ -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: