Make --continue the default and provide --no-continue (Closes #119)
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 15 Sep 2011 17:12:04 +0000 (19:12 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 15 Sep 2011 17:12:04 +0000 (19:12 +0200)
youtube-dl

index e304df5572d02c6841542182761cb75121512367..624df4bea919e5514ca5e80bd32bd0eb88880690 100755 (executable)
@@ -3568,7 +3568,10 @@ def parseOpts():
        filesystem.add_option('-w', '--no-overwrites',
                        action='store_true', dest='nooverwrites', help='do not overwrite files', default=False)
        filesystem.add_option('-c', '--continue',
-                       action='store_true', dest='continue_dl', help='resume partially downloaded files', default=False)
+                       action='store_true', dest='continue_dl', help='resume partially downloaded files', default=True)
+       filesystem.add_option('--no-continue',
+                       action='store_false', dest='continue_dl',
+                       help='do not resume partially downloaded files (restart from beginning)')
        filesystem.add_option('--cookies',
                        dest='cookiefile', metavar='FILE', help='file to dump cookie jar to')
        filesystem.add_option('--no-part',