summaryrefslogtreecommitdiffstats
path: root/subcmds/help.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/help.py')
-rw-r--r--subcmds/help.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/subcmds/help.py b/subcmds/help.py
index 50a48047..593bf676 100644
--- a/subcmds/help.py
+++ b/subcmds/help.py
@@ -26,6 +26,11 @@ from command import (
26) 26)
27import gitc_utils 27import gitc_utils
28from wrapper import Wrapper 28from wrapper import Wrapper
29from error import RepoExitError
30
31
32class InvalidHelpCommand(RepoExitError):
33 """Invalid command passed into help."""
29 34
30 35
31class Help(PagedCommand, MirrorSafeCommand): 36class Help(PagedCommand, MirrorSafeCommand):
@@ -202,7 +207,7 @@ Displays detailed usage information about a command.
202 print( 207 print(
203 "repo: '%s' is not a repo command." % name, file=sys.stderr 208 "repo: '%s' is not a repo command." % name, file=sys.stderr
204 ) 209 )
205 sys.exit(1) 210 raise InvalidHelpCommand(name)
206 211
207 self._PrintCommandHelp(cmd) 212 self._PrintCommandHelp(cmd)
208 213