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/diffmanifests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subcmds/diffmanifests.py') diff --git a/subcmds/diffmanifests.py b/subcmds/diffmanifests.py index 392e5972..6f23b345 100644 --- a/subcmds/diffmanifests.py +++ b/subcmds/diffmanifests.py @@ -68,10 +68,10 @@ synced and their revisions won't be found. def _Options(self, p): p.add_option('--raw', dest='raw', action='store_true', - help='Display raw diff.') + help='display raw diff') p.add_option('--no-color', dest='color', action='store_false', default=True, - help='does not display the diff in color.') + help='does not display the diff in color') p.add_option('--pretty-format', dest='pretty_format', action='store', metavar='', -- cgit v1.2.3-54-g00ecf