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/overview.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/overview.py')
-rw-r--r-- | subcmds/overview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/overview.py b/subcmds/overview.py index 202a5eba..b28367be 100644 --- a/subcmds/overview.py +++ b/subcmds/overview.py | |||
@@ -36,7 +36,7 @@ are displayed. | |||
36 | def _Options(self, p): | 36 | def _Options(self, p): |
37 | p.add_option('-c', '--current-branch', | 37 | p.add_option('-c', '--current-branch', |
38 | dest="current_branch", action="store_true", | 38 | dest="current_branch", action="store_true", |
39 | help="Consider only checked out branches") | 39 | help="consider only checked out branches") |
40 | p.add_option('--no-current-branch', | 40 | p.add_option('--no-current-branch', |
41 | dest='current_branch', action='store_false', | 41 | dest='current_branch', action='store_false', |
42 | help='consider all local branches') | 42 | help='consider all local branches') |