summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-08-01 10:40:37 +0200
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:28:36 +0100
commit2962317dea05602dc8be45bc1bbff7f2ac8ddd9d (patch)
treee14f8b0dc18aceaa3340d415f917c9d2f217d87a
parent268fb2bdd8962fb2064e32caff95cc098bb0f49a (diff)
downloadyoutube-dl-2962317dea05602dc8be45bc1bbff7f2ac8ddd9d.tar.gz
youtube-dl-2962317dea05602dc8be45bc1bbff7f2ac8ddd9d.tar.xz
youtube-dl-2962317dea05602dc8be45bc1bbff7f2ac8ddd9d.zip
Put back -b option as a placeholder with a warning message
-rwxr-xr-xyoutube-dl4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube-dl b/youtube-dl
index 6be25baa4..b0c0d1939 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -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: