add '--chunk-size' command-line option (#3143)
This commit is contained in:
@@ -267,6 +267,11 @@ def build_parser():
|
|||||||
dest="filesize-max", metavar="SIZE", action=ConfigAction,
|
dest="filesize-max", metavar="SIZE", action=ConfigAction,
|
||||||
help="Do not download files larger than SIZE (e.g. 500k or 2.5M)",
|
help="Do not download files larger than SIZE (e.g. 500k or 2.5M)",
|
||||||
)
|
)
|
||||||
|
downloader.add_argument(
|
||||||
|
"--chunk-size",
|
||||||
|
dest="chunk-size", metavar="SIZE", action=ConfigAction,
|
||||||
|
help="Size of in-memory data chunks (default: 32k)",
|
||||||
|
)
|
||||||
downloader.add_argument(
|
downloader.add_argument(
|
||||||
"--no-part",
|
"--no-part",
|
||||||
dest="part", nargs=0, action=ConfigConstAction, const=False,
|
dest="part", nargs=0, action=ConfigConstAction, const=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user