mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
python: Elide default for store_{true,false} argparse arguments.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Alex Vandiver
parent
d9431a5e66
commit
b4597a8ca8
@@ -67,10 +67,10 @@ parser.add_argument('-d', '--dst-host', dest="host", type=str, default='https://
|
||||
parser.add_argument('-u', '--dst-url', dest="url", type=str, 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', default=True,
|
||||
parser.add_argument('-n', '--not-verify-ssl', dest="verify_ssl", action='store_false',
|
||||
help="Disable ssl certificate verifying for self-signed certificates")
|
||||
|
||||
parser.add_argument('-t', '--test', action='store_true', default=False,
|
||||
parser.add_argument('-t', '--test', action='store_true',
|
||||
help="Test mode.")
|
||||
|
||||
options = parser.parse_args()
|
||||
|
||||
@@ -17,7 +17,7 @@ logging.basicConfig(format="%(asctime)s restart-server: %(message)s",
|
||||
level=logging.INFO)
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--fill-cache', action='store_true', default=False,
|
||||
parser.add_argument('--fill-cache', action='store_true',
|
||||
help='Fill the memcached caches')
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user