python: Elide type=str from argparse arguments.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-09-02 12:24:05 -07:00
committed by Alex Vandiver
parent fbfd4b399d
commit a50fae89e2
45 changed files with 53 additions and 86 deletions

View File

@@ -54,17 +54,17 @@ from urllib.request import Request, urlopen
parser = argparse.ArgumentParser()
parser.add_argument('-r', '--recipient', type=str, default='',
parser.add_argument('-r', '--recipient', default='',
help="Original recipient.")
parser.add_argument('-s', '--shared-secret', type=str, default='',
parser.add_argument('-s', '--shared-secret', default='',
help="Secret access key.")
parser.add_argument('-d', '--dst-host', dest="host", type=str, default='https://127.0.0.1',
parser.add_argument('-d', '--dst-host', dest="host", default='https://127.0.0.1',
help="Destination server address for uploading email from email mirror. "
"Address must contain a HTTP protocol.")
parser.add_argument('-u', '--dst-url', dest="url", type=str, default='/email_mirror_message',
parser.add_argument('-u', '--dst-url', dest="url", default='/email_mirror_message',
help="Destination relative url for uploading email from email mirror.")
parser.add_argument('-n', '--not-verify-ssl', dest="verify_ssl", action='store_false',