diff options
Diffstat (limited to 'subcmds/help.py')
-rw-r--r-- | subcmds/help.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/subcmds/help.py b/subcmds/help.py index 821f6bf6..f302e75c 100644 --- a/subcmds/help.py +++ b/subcmds/help.py | |||
@@ -138,8 +138,7 @@ Displays detailed usage information about a command. | |||
138 | 138 | ||
139 | def _PrintAllCommandHelp(self): | 139 | def _PrintAllCommandHelp(self): |
140 | for name in sorted(all_commands): | 140 | for name in sorted(all_commands): |
141 | cmd = all_commands[name]() | 141 | cmd = all_commands[name](manifest=self.manifest) |
142 | cmd.manifest = self.manifest | ||
143 | self._PrintCommandHelp(cmd, header_prefix='[%s] ' % (name,)) | 142 | self._PrintCommandHelp(cmd, header_prefix='[%s] ' % (name,)) |
144 | 143 | ||
145 | def _Options(self, p): | 144 | def _Options(self, p): |
@@ -163,12 +162,11 @@ Displays detailed usage information about a command. | |||
163 | name = args[0] | 162 | name = args[0] |
164 | 163 | ||
165 | try: | 164 | try: |
166 | cmd = all_commands[name]() | 165 | cmd = all_commands[name](manifest=self.manifest) |
167 | except KeyError: | 166 | except KeyError: |
168 | print("repo: '%s' is not a repo command." % name, file=sys.stderr) | 167 | print("repo: '%s' is not a repo command." % name, file=sys.stderr) |
169 | sys.exit(1) | 168 | sys.exit(1) |
170 | 169 | ||
171 | cmd.manifest = self.manifest | ||
172 | self._PrintCommandHelp(cmd) | 170 | self._PrintCommandHelp(cmd) |
173 | 171 | ||
174 | else: | 172 | else: |