diff options
author | Mike Frysinger <vapier@google.com> | 2020-02-19 01:20:18 -0500 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2020-02-19 08:23:04 +0000 |
commit | 72ebf19e52e7c4b270e40ba07fec1048b3612797 (patch) | |
tree | 2543c616eaae25fca8bc198dd2dac4f1142de6fa /command.py | |
parent | e50b6a7c4f0a0cf3a97c8a1eec835156f68539f8 (diff) | |
download | git-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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 | ||