Introduce --keep-fragments

This commit is contained in:
Sergey M․ 2017-04-24 03:09:08 +07:00
parent d3f0687cf7
commit 0eee52f34b
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
3 changed files with 9 additions and 1 deletions

View file

@ -468,6 +468,10 @@ def parseOpts(overrideArguments=None):
'--abort-on-unavailable-fragment',
action='store_false', dest='skip_unavailable_fragments',
help='Abort downloading when some fragment is not available')
downloader.add_option(
'--keep-fragments',
action='store_true', dest='keep_fragments', default=False,
help='Keep downloaded fragments on disk after downloading is finished; fragments are erased by default')
downloader.add_option(
'--buffer-size',
dest='buffersize', metavar='SIZE', default='1024',