diff options
author | Mike Frysinger <vapier@google.com> | 2021-05-04 08:06:36 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2021-05-04 16:40:53 +0000 |
commit | c177f944d95c460803f8a894fd13d4901c3155fe (patch) | |
tree | 1645c1bcf6e2cd304600ebc1f5193a0edf329429 /subcmds/sync.py | |
parent | aedd1e5ef015fba194681e167edf460c21a1c980 (diff) | |
download | git-repo-c177f944d95c460803f8a894fd13d4901c3155fe.tar.gz |
subcmds: force consistent help text format
We're inconsistent with help text as to whether it uses title case and
whether it ends in a period. Add a test to enforce a standard, and use
the style that Python optparse & argparse use themselves (e.g. with the
--help option): always lowercase, and never trailing period.
Change-Id: Ic1defae23daeac0ac9116aaf487427f50b34050d
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/305144
Reviewed-by: Raman Tenneti <rtenneti@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index e5280865..31760e5c 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -169,10 +169,11 @@ later is required to fix a server side protocol bug. | |||
169 | PARALLEL_JOBS = 1 | 169 | PARALLEL_JOBS = 1 |
170 | 170 | ||
171 | def _CommonOptions(self, p): | 171 | def _CommonOptions(self, p): |
172 | try: | 172 | if self.manifest: |
173 | self.PARALLEL_JOBS = self.manifest.default.sync_j | 173 | try: |
174 | except ManifestParseError: | 174 | self.PARALLEL_JOBS = self.manifest.default.sync_j |
175 | pass | 175 | except ManifestParseError: |
176 | pass | ||
176 | super()._CommonOptions(p) | 177 | super()._CommonOptions(p) |
177 | 178 | ||
178 | def _Options(self, p, show_smart=True): | 179 | def _Options(self, p, show_smart=True): |