mirror of https://github.com/zulip/zulip.git
check-provision: Replace optparse with argparse.
This commit is contained in:
parent
2ce9e4d9a1
commit
3ac8ab8be3
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import optparse
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
tools_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
@ -14,11 +14,11 @@ from tools.lib.test_script import (
|
|||
|
||||
def run():
|
||||
# type: () -> None
|
||||
parser = optparse.OptionParser()
|
||||
parser.add_option('--force', default=False,
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--force', default=False,
|
||||
action="store_true",
|
||||
help='Run tests despite possible problems.')
|
||||
(options, args) = parser.parse_args()
|
||||
options = parser.parse_args()
|
||||
|
||||
if not options.force:
|
||||
ok, msg = get_provisioning_status()
|
||||
|
|
Loading…
Reference in New Issue