summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-02-19 01:20:18 -0500
committerDavid Pursehouse <dpursehouse@collab.net>2020-02-19 08:23:04 +0000
commit72ebf19e52e7c4b270e40ba07fec1048b3612797 (patch)
tree2543c616eaae25fca8bc198dd2dac4f1142de6fa /command.py
parente50b6a7c4f0a0cf3a97c8a1eec835156f68539f8 (diff)
downloadgit-repo-72ebf19e52e7c4b270e40ba07fec1048b3612797.tar.gz
command: add a `repo help` tip to --help output
For people used to running `repo xxx --help`, they might not realize that there are detailed man pages behind `repo help xxx`. Add a note to all --help commands to improve discoverability. Change-Id: I84af58aa0514cc7ead185f6c2534a8f88e09a236 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255853 Tested-by: Mike Frysinger <vapier@google.com> Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Diffstat (limited to 'command.py')
-rw-r--r--command.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/command.py b/command.py
index d4d86798..b1fa0ef5 100644
--- a/command.py
+++ b/command.py
@@ -66,7 +66,8 @@ class Command(object):
66 usage = self.helpUsage.strip().replace('%prog', me) 66 usage = self.helpUsage.strip().replace('%prog', me)
67 except AttributeError: 67 except AttributeError:
68 usage = 'repo %s' % self.NAME 68 usage = 'repo %s' % self.NAME
69 self._optparse = optparse.OptionParser(usage=usage) 69 epilog = 'Run `repo help %s` to view the detailed manual.' % self.NAME
70 self._optparse = optparse.OptionParser(usage=usage, epilog=epilog)
70 self._Options(self._optparse) 71 self._Options(self._optparse)
71 return self._optparse 72 return self._optparse
72 73