diff options
author | Mike Frysinger <vapier@google.com> | 2021-06-14 16:05:19 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2021-06-15 06:07:37 +0000 |
commit | 4f21054c2841809da5e1e600b1cc765811288a80 (patch) | |
tree | 326156bb4407124de07207847bd9e4587124e37d /subcmds/help.py | |
parent | 5ba2120362ceb49b89e0536108792fd7c824e28a (diff) | |
download | git-repo-4f21054c2841809da5e1e600b1cc765811288a80.tar.gz |
commands: document the "common" class attribute
Switch it to uppercase to make it clear it's a constant, and add
documentation so its usage is clear.
Change-Id: I6d281a66a90b5908b3131585c9945e88cfe815ea
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/309322
Reviewed-by: Raman Tenneti <rtenneti@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/help.py')
-rw-r--r-- | subcmds/help.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/help.py b/subcmds/help.py index 0989b999..821f6bf6 100644 --- a/subcmds/help.py +++ b/subcmds/help.py | |||
@@ -24,7 +24,7 @@ from wrapper import Wrapper | |||
24 | 24 | ||
25 | 25 | ||
26 | class Help(PagedCommand, MirrorSafeCommand): | 26 | class Help(PagedCommand, MirrorSafeCommand): |
27 | common = False | 27 | COMMON = False |
28 | helpSummary = "Display detailed help on a command" | 28 | helpSummary = "Display detailed help on a command" |
29 | helpUsage = """ | 29 | helpUsage = """ |
30 | %prog [--all|command] | 30 | %prog [--all|command] |
@@ -73,7 +73,7 @@ Displays detailed usage information about a command. | |||
73 | 73 | ||
74 | commandNames = list(sorted([name | 74 | commandNames = list(sorted([name |
75 | for name, command in all_commands.items() | 75 | for name, command in all_commands.items() |
76 | if command.common and gitc_supported(command)])) | 76 | if command.COMMON and gitc_supported(command)])) |
77 | self._PrintCommands(commandNames) | 77 | self._PrintCommands(commandNames) |
78 | 78 | ||
79 | print( | 79 | print( |