Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

zulip_tools: Rename start_arg_parser to start_script_arg_parser.

Aman Agrawal239e792759ef
diff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.py
index 012210d08a9..c8bf7aa4bd5 100755
--- a/scripts/lib/zulip_tools.py
+++ b/scripts/lib/zulip_tools.py
@@ -651,7 +651,7 @@ def deport(netloc: str) -> str:
return "[" + r.hostname + "]" if ":" in r.hostname else r.hostname
-def start_arg_parser(action: str, add_help: bool = False) -> argparse.ArgumentParser:
+def start_script_arg_parser(action: str, add_help: bool = False) -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(add_help=add_help)
parser.add_argument("--fill-cache", action="store_true", help="Fill the memcached caches")
parser.add_argument(
@@ -690,7 +690,7 @@ def upgrade_script_arg_parser() -> argparse.ArgumentParser:
the parsed values through to stage-3.
"""
parser = argparse.ArgumentParser(
- add_help=False, parents=[start_arg_parser(action="restart", add_help=False)]
+ add_help=False, parents=[start_script_arg_parser(action="restart", add_help=False)]
)
parser.add_argument(
"--skip-restart",
diff --git a/scripts/restart-server b/scripts/restart-server
index a16661afb7f..335fd536c65 100755
--- a/scripts/restart-server
+++ b/scripts/restart-server
@@ -27,7 +27,7 @@ from scripts.lib.zulip_tools import (
has_application_server,
has_process_fts_updates,
overwrite_symlink,
- start_arg_parser,
+ start_script_arg_parser,
su_to_zulip,
)
@@ -39,7 +39,7 @@ verbing = action.title() + "ing"
logging.Formatter.converter = time.gmtime
logging.basicConfig(format=f"%(asctime)s {action}-server: %(message)s", level=logging.INFO)
-parser = start_arg_parser(action=action, add_help=True)
+parser = start_script_arg_parser(action=action, add_help=True)
args = parser.parse_args()
deploy_path = os.path.realpath(os.path.join(os.path.dirname(__file__), ".."))