summaryrefslogtreecommitdiffstats
path: root/subcmds/gitc_delete.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-05-04 08:06:36 -0400
committerMike Frysinger <vapier@google.com>2021-05-04 16:40:53 +0000
commitc177f944d95c460803f8a894fd13d4901c3155fe (patch)
tree1645c1bcf6e2cd304600ebc1f5193a0edf329429 /subcmds/gitc_delete.py
parentaedd1e5ef015fba194681e167edf460c21a1c980 (diff)
downloadgit-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/gitc_delete.py')
-rw-r--r--subcmds/gitc_delete.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/gitc_delete.py b/subcmds/gitc_delete.py
index 56e0eaba..54b956f7 100644
--- a/subcmds/gitc_delete.py
+++ b/subcmds/gitc_delete.py
@@ -33,7 +33,7 @@ and all locally downloaded sources.
33 def _Options(self, p): 33 def _Options(self, p):
34 p.add_option('-f', '--force', 34 p.add_option('-f', '--force',
35 dest='force', action='store_true', 35 dest='force', action='store_true',
36 help='Force the deletion (no prompt).') 36 help='force the deletion (no prompt)')
37 37
38 def Execute(self, opt, args): 38 def Execute(self, opt, args):
39 if not opt.force: 39 if not opt.force: