Rename opposite to opposite_aliases
This commit is contained in:
parent
7c9c873b13
commit
dba6338968
@ -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)
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user