Plugins don't need to be in HELP_TOPICS

They're already added as topics automatically, though they do need to be in
the hand-written top level help.
This commit is contained in:
Peter Eckersley
2015-09-30 15:29:29 -07:00
parent 2d578468bd
commit d85f42d71f
+3 -4
View File
@@ -80,8 +80,8 @@ More detailed help:
-h, --help [topic] print this message, or detailed help on a topic; -h, --help [topic] print this message, or detailed help on a topic;
the available topics are: the available topics are:
all, apache, automation, nginx, paths, security, testing, or any of the all, apache, automation, manual, nginx, paths, security, testing, or any of
subcommands the subcommands
""" """
@@ -740,8 +740,7 @@ VERBS = {
"config_changes" : config_changes, "config_changes" : config_changes,
"plugins" : plugins_cmd "plugins" : plugins_cmd
} }
HELP_TOPICS = (["all", "security", "paths", "automation", "testing", "apache", "nginx"] HELP_TOPICS = ["all", "security", "paths", "automation", "testing"] + VERBS.keys()
+ VERBS.keys())
def _create_subparsers(helpful): def _create_subparsers(helpful):
subparsers = helpful.parser.add_subparsers(metavar="SUBCOMMAND") subparsers = helpful.parser.add_subparsers(metavar="SUBCOMMAND")