From dba6338968b17156354c7b74afaec0b0f2c39e0b Mon Sep 17 00:00:00 2001 From: Unrud Date: Wed, 10 Nov 2021 22:16:30 +0100 Subject: [PATCH] Rename opposite to opposite_aliases --- radicale/__main__.py | 2 +- radicale/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/__main__.py b/radicale/__main__.py index 8f21ece..cd6e5d7 100644 --- a/radicale/__main__.py +++ b/radicale/__main__.py @@ -91,7 +91,7 @@ def run() -> None: del kwargs["type"] kwargs["action"] = "store_const" kwargs["const"] = "True" - opposite_args = list(kwargs.pop("opposite", ())) + opposite_args = list(kwargs.pop("opposite_aliases", ())) opposite_args.append("--no%s" % long_name[1:]) group.add_argument(*args, **kwargs) diff --git a/radicale/config.py b/radicale/config.py index ec94ada..17e4a25 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -126,7 +126,7 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([ "value": "False", "help": "use SSL connection", "aliases": ("-s", "--ssl",), - "opposite": ("-S", "--no-ssl",), + "opposite_aliases": ("-S", "--no-ssl",), "type": bool}), ("certificate", { "value": "/etc/ssl/radicale.cert.pem",