Put back -b option as a placeholder with a warning message
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 1 Aug 2010 08:40:37 +0000 (10:40 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:28:36 +0000 (11:28 +0100)
youtube-dl

index 6be25baa4345764b8ab6bec2e401ecc62c874550..b0c0d1939e405c52480019a6d0ef004f0e6f724d 100755 (executable)
@@ -2112,6 +2112,8 @@ if __name__ == '__main__':
                                action='store_const', dest='format', help='download all available video formats', const='-1')
                video_format.add_option('--max-quality',
                                action='store', dest='format_limit', metavar='FORMAT', help='highest quality format to download')
+               video_format.add_option('-b', '--best-quality',
+                               action='store_true', dest='bestquality', help='download the best video quality (DEPRECATED)')
                parser.add_option_group(video_format)
 
                verbosity = optparse.OptionGroup(parser, 'Verbosity / Simulation Options')
@@ -2164,6 +2166,8 @@ if __name__ == '__main__':
                all_urls = batchurls + args
 
                # Conflicting, missing and erroneous options
+               if opts.bestquality:
+                       print >>sys.stderr, u'\nWARNING: -b/--best-quality IS DEPRECATED AS IT IS THE DEFAULT BEHAVIOR NOW\n'
                if opts.usenetrc and (opts.username is not None or opts.password is not None):
                        parser.error(u'using .netrc conflicts with giving username/password')
                if opts.password is not None and opts.username is None: