X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Foptions.py;h=16aa6ffca1c8f1e3199d0b2d570307ec5cf7be91;hb=b244b5c3f9082a307f0e1c4ee561594bd389aeb2;hp=c182abfdc8f211b7c7520547926ba09b40bf1071;hpb=b703ab4d7f39ea7e9a88c971d55fdcc1b468ba26;p=youtube-dl.git diff --git a/youtube_dl/options.py b/youtube_dl/options.py index c182abfdc..16aa6ffca 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -8,6 +8,7 @@ import sys from .compat import ( compat_expanduser, compat_getenv, + compat_kwargs, ) from .utils import ( get_term_width, @@ -112,7 +113,7 @@ def parseOpts(overrideArguments=None): 'conflict_handler': 'resolve', } - parser = optparse.OptionParser(**kw) + parser = optparse.OptionParser(**compat_kwargs(kw)) general = optparse.OptionGroup(parser, 'General Options') general.add_option(