From c177f944d95c460803f8a894fd13d4901c3155fe Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 4 May 2021 08:06:36 -0400 Subject: 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 Tested-by: Mike Frysinger --- subcmds/gitc_delete.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subcmds/gitc_delete.py') 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. def _Options(self, p): p.add_option('-f', '--force', dest='force', action='store_true', - help='Force the deletion (no prompt).') + help='force the deletion (no prompt)') def Execute(self, opt, args): if not opt.force: -- cgit v1.2.3-54-g00ecf