]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[options] Add --yes-playlist as inverse of --no-playlist (Fixes #5051)
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 24 Feb 2015 16:25:02 +0000 (17:25 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 24 Feb 2015 16:25:02 +0000 (17:25 +0100)
youtube_dl/options.py

index 5c2d153b13b9e060e4f5b4d1d9991d10a72413c4..886ce96132d4ec6b67b3bf3114425463f6687597 100644 (file)
@@ -272,6 +272,10 @@ def parseOpts(overrideArguments=None):
         '--no-playlist',
         action='store_true', dest='noplaylist', default=False,
         help='If the URL refers to a video and a playlist, download only the video.')
+    selection.add_option(
+        '--yes-playlist',
+        action='store_false', dest='noplaylist', default=False,
+        help='If the URL refers to a video and a playlist, download the playlist.')
     selection.add_option(
         '--age-limit',
         metavar='YEARS', dest='age_limit', default=None, type=int,