Since --webroot-map is not elegant, do not document it

This commit is contained in:
Peter Eckersley
2015-11-24 14:02:21 -08:00
parent a3b0588cea
commit b3851edb73
+2 -1
View File
@@ -1037,8 +1037,9 @@ def _plugins_parsing(helpful, plugins):
helpful.add("webroot", "-w", "--webroot-path", action=WebrootPathProcessor,
help="public_html / webroot path")
parse_dict = lambda s: dict(json.loads(s))
# --webroot-map still has some awkward properties, so it is undocumented
helpful.add("webroot", "--webroot-map", default={}, type=parse_dict,
help="Mapping from domains to webroot paths")
help=argparse.SUPPRESS)
class WebrootPathProcessor(argparse.Action): # pylint: disable=missing-docstring