add 'mtime' option

This commit is contained in:
Mike Fährmann
2019-06-20 17:19:44 +02:00
parent ee4d7c3d89
commit db3f52881a
5 changed files with 35 additions and 3 deletions

View File

@@ -182,6 +182,12 @@ def build_parser():
dest="part", nargs=0, action=ConfigConstAction, const=False,
help="Do not use .part files",
)
downloader.add_argument(
"--no-mtime",
dest="mtime", nargs=0, action=ConfigConstAction, const=False,
help=("Do not set file modification times according to "
"Last-Modified HTTP response headers")
)
downloader.add_argument(
"--no-check-certificate",
dest="verify", nargs=0, action=ConfigConstAction, const=False,