mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
zulip_tools: Remove the now unused GENERIC_CACHE_SCRIPT_PARSER.
This has been replaced by `parse_cache_script_args()`.
This commit is contained in:
committed by
Tim Abbott
parent
7f752f0942
commit
3e8469a717
@@ -37,19 +37,6 @@ BLUE = '\x1b[34m'
|
|||||||
MAGENTA = '\x1b[35m'
|
MAGENTA = '\x1b[35m'
|
||||||
CYAN = '\x1b[36m'
|
CYAN = '\x1b[36m'
|
||||||
|
|
||||||
# Parent parser for cache cleaning scripts.
|
|
||||||
GENERIC_CACHE_SCRIPT_PARSER = argparse.ArgumentParser(add_help=False)
|
|
||||||
GENERIC_CACHE_SCRIPT_PARSER.add_argument(
|
|
||||||
"--threshold", dest="threshold_days", type=int, default=14,
|
|
||||||
nargs="?", metavar="<days>", help="Any cache which is not in "
|
|
||||||
"use by a deployment not older than threshold days(current "
|
|
||||||
"installation in dev) and older than threshold days will be "
|
|
||||||
"deleted. (defaults to 14)")
|
|
||||||
GENERIC_CACHE_SCRIPT_PARSER.add_argument(
|
|
||||||
"--dry-run", dest="dry_run", action="store_true",
|
|
||||||
help="If specified then script will only print the caches "
|
|
||||||
"that it will delete/keep back. It will not delete any cache.")
|
|
||||||
|
|
||||||
def parse_cache_script_args(description):
|
def parse_cache_script_args(description):
|
||||||
# type: (Text) -> argparse.Namespace
|
# type: (Text) -> argparse.Namespace
|
||||||
parser = argparse.ArgumentParser(description=description)
|
parser = argparse.ArgumentParser(description=description)
|
||||||
|
|||||||
Reference in New Issue
Block a user