diff options
Diffstat (limited to 'subcmds/help.py')
| -rw-r--r-- | subcmds/help.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/subcmds/help.py b/subcmds/help.py index ae5b8f08..9bb4c8c7 100644 --- a/subcmds/help.py +++ b/subcmds/help.py | |||
| @@ -19,7 +19,7 @@ import sys | |||
| 19 | from formatter import AbstractFormatter, DumbWriter | 19 | from formatter import AbstractFormatter, DumbWriter |
| 20 | 20 | ||
| 21 | from color import Coloring | 21 | from color import Coloring |
| 22 | from command import PagedCommand, MirrorSafeCommand, RequiresGitcCommand | 22 | from command import PagedCommand, MirrorSafeCommand, GitcAvailableCommand, GitcClientCommand |
| 23 | import gitc_utils | 23 | import gitc_utils |
| 24 | 24 | ||
| 25 | class Help(PagedCommand, MirrorSafeCommand): | 25 | class Help(PagedCommand, MirrorSafeCommand): |
| @@ -57,8 +57,12 @@ Displays detailed usage information about a command. | |||
| 57 | print('The most commonly used repo commands are:') | 57 | print('The most commonly used repo commands are:') |
| 58 | 58 | ||
| 59 | def gitc_supported(cmd): | 59 | def gitc_supported(cmd): |
| 60 | if not isinstance(cmd, RequiresGitcCommand): | 60 | if not isinstance(cmd, GitcAvailableCommand) and not isinstance(cmd, GitcClientCommand): |
| 61 | return True | 61 | return True |
| 62 | if self.manifest.isGitcClient: | ||
| 63 | return True | ||
| 64 | if isinstance(cmd, GitcClientCommand): | ||
| 65 | return False | ||
| 62 | if gitc_utils.get_gitc_manifest_dir(): | 66 | if gitc_utils.get_gitc_manifest_dir(): |
| 63 | return True | 67 | return True |
| 64 | return False | 68 | return False |
