Skip to content

A feature-rich command-line audio/video downloader

[options] Add --limit-rate alias for rate limiting option

Sergey M․8ec2b2c41c7f
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 38efd292d2..14051b7143 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -395,8 +395,8 @@ def parseOpts(overrideArguments=None):
downloader = optparse.OptionGroup(parser, 'Download Options')
downloader.add_option(
- '-r', '--rate-limit',
- dest='ratelimit', metavar='LIMIT',
+ '-r', '--limit-rate', '--rate-limit',
+ dest='ratelimit', metavar='RATE',
help='Maximum download rate in bytes per second (e.g. 50K or 4.2M)')
downloader.add_option(
'-R', '--retries',