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/info.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/info.py')
-rw-r--r-- | subcmds/info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/info.py b/subcmds/info.py index 2be56109..f7cf60fc 100644 --- a/subcmds/info.py +++ b/subcmds/info.py | |||
@@ -48,7 +48,7 @@ class Info(PagedCommand): | |||
48 | help=optparse.SUPPRESS_HELP) | 48 | help=optparse.SUPPRESS_HELP) |
49 | p.add_option('-l', '--local-only', | 49 | p.add_option('-l', '--local-only', |
50 | dest="local", action="store_true", | 50 | dest="local", action="store_true", |
51 | help="Disable all remote operations") | 51 | help="disable all remote operations") |
52 | 52 | ||
53 | def Execute(self, opt, args): | 53 | def Execute(self, opt, args): |
54 | self.out = _Coloring(self.client.globalConfig) | 54 | self.out = _Coloring(self.client.globalConfig) |