diff options
Diffstat (limited to 'subcmds/help.py')
-rw-r--r-- | subcmds/help.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subcmds/help.py b/subcmds/help.py index 5e24ed0b..1e16019a 100644 --- a/subcmds/help.py +++ b/subcmds/help.py | |||
@@ -43,7 +43,7 @@ Displays detailed usage information about a command. | |||
43 | fmt = ' %%-%ds %%s' % maxlen | 43 | fmt = ' %%-%ds %%s' % maxlen |
44 | 44 | ||
45 | for name in commandNames: | 45 | for name in commandNames: |
46 | command = all_commands[name] | 46 | command = all_commands[name]() |
47 | try: | 47 | try: |
48 | summary = command.helpSummary.strip() | 48 | summary = command.helpSummary.strip() |
49 | except AttributeError: | 49 | except AttributeError: |
@@ -134,7 +134,7 @@ Displays detailed usage information about a command. | |||
134 | 134 | ||
135 | def _PrintAllCommandHelp(self): | 135 | def _PrintAllCommandHelp(self): |
136 | for name in sorted(all_commands): | 136 | for name in sorted(all_commands): |
137 | cmd = all_commands[name] | 137 | cmd = all_commands[name]() |
138 | cmd.manifest = self.manifest | 138 | cmd.manifest = self.manifest |
139 | self._PrintCommandHelp(cmd, header_prefix='[%s] ' % (name,)) | 139 | self._PrintCommandHelp(cmd, header_prefix='[%s] ' % (name,)) |
140 | 140 | ||
@@ -159,7 +159,7 @@ Displays detailed usage information about a command. | |||
159 | name = args[0] | 159 | name = args[0] |
160 | 160 | ||
161 | try: | 161 | try: |
162 | cmd = all_commands[name] | 162 | cmd = all_commands[name]() |
163 | except KeyError: | 163 | except KeyError: |
164 | print("repo: '%s' is not a repo command." % name, file=sys.stderr) | 164 | print("repo: '%s' is not a repo command." % name, file=sys.stderr) |
165 | sys.exit(1) | 165 | sys.exit(1) |