Don't modify DEFAULT_CONFIG_SCHEMA

This commit is contained in:
Unrud 2021-11-10 22:14:51 +01:00
parent f72b344981
commit 7c9c873b13
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ def run() -> None:
del kwargs["type"] del kwargs["type"]
kwargs["action"] = "store_const" kwargs["action"] = "store_const"
kwargs["const"] = "True" kwargs["const"] = "True"
opposite_args = kwargs.pop("opposite", []) opposite_args = list(kwargs.pop("opposite", ()))
opposite_args.append("--no%s" % long_name[1:]) opposite_args.append("--no%s" % long_name[1:])
group.add_argument(*args, **kwargs) group.add_argument(*args, **kwargs)

View File

@ -126,7 +126,7 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([
"value": "False", "value": "False",
"help": "use SSL connection", "help": "use SSL connection",
"aliases": ("-s", "--ssl",), "aliases": ("-s", "--ssl",),
"opposite": ["-S", "--no-ssl"], "opposite": ("-S", "--no-ssl",),
"type": bool}), "type": bool}),
("certificate", { ("certificate", {
"value": "/etc/ssl/radicale.cert.pem", "value": "/etc/ssl/radicale.cert.pem",