From cfaad2c580f289d7a16de072513e8fbfeceea26c Mon Sep 17 00:00:00 2001 From: Mayank Gupta Date: Sat, 8 May 2021 04:18:26 +0200 Subject: [PATCH] release v2.0.1 --- AllChangelog.md => Changelogs.md | 4 ++++ release.md | 4 ++-- transfer/cli.py | 5 ++--- transfer/version.py | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) rename AllChangelog.md => Changelogs.md (85%) diff --git a/AllChangelog.md b/Changelogs.md similarity index 85% rename from AllChangelog.md rename to Changelogs.md index 818d111..775fb8d 100644 --- a/AllChangelog.md +++ b/Changelogs.md @@ -1,5 +1,9 @@ # Changelogs +## V2.0.1 + +* `--max-downloads` and `--max-days` in upload can be used together. + ## V2.0.0 * added `--max-downloads` and `--max-days` in upload diff --git a/release.md b/release.md index 8f33af7..59fabfc 100644 --- a/release.md +++ b/release.md @@ -1,5 +1,5 @@ # Changelogs -## V2.0.0 +## V2.0.1 -* added `--max-downloads` and `--max-days` in upload +* `--max-downloads` and `--max-days` in upload can be used together. diff --git a/transfer/cli.py b/transfer/cli.py index 2d17ec4..2952498 100644 --- a/transfer/cli.py +++ b/transfer/cli.py @@ -180,10 +180,9 @@ def get_args(self) -> argparse.Namespace: c2.add_argument("-f", "--force", required=False,action="store_true", help="Force to skip some verification tests and upload directly.") - groupc3 = c2.add_mutually_exclusive_group(required=False) - groupc3.add_argument("--max-downloads", type=int, required=False, + c2.add_argument("--max-downloads", type=int, required=False, dest="max-downloads", help="Link will automatically delete after limit of downloads.") - groupc3.add_argument("--max-days", required=False, type=int, dest="max-days", + c2.add_argument("--max-days", required=False, type=int, dest="max-days", help="how long you want to keep the link alive.") diff --git a/transfer/version.py b/transfer/version.py index 2b87dfc..6c4c107 100644 --- a/transfer/version.py +++ b/transfer/version.py @@ -1,4 +1,4 @@ -__version__ = "2.0.0" +__version__ = "2.0.1" if __name__ == '__main__':