From 23a140aa3011555e9bf5ab56c4efa886352ea6bc Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 8 Mar 2016 11:31:21 -0800 Subject: [PATCH] Improve help text Add choices to --color help text. Fix typo in --allow-unstaged-config. --- pre_commit/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit/main.py b/pre_commit/main.py index 7092a5a8..0e092667 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -79,7 +79,7 @@ def main(argv=None): run_parser.add_argument('hook', nargs='?', help='A single hook-id to run') run_parser.add_argument( '--color', default='auto', type=color.use_color, - help='Whether to use color in output. Defaults to `auto`', + help='Whether to use color in output. Choices are `always`, `never`, or `auto`. Defaults to `auto`.', ) run_parser.add_argument( '--no-stash', default=False, action='store_true', @@ -98,7 +98,7 @@ def main(argv=None): ) run_parser.add_argument( '--allow-unstaged-config', default=False, action='store_true', - help='Allow an unstaged config to be present. Note that this will' + help='Allow an unstaged config to be present. Note that this will ' 'be stashed before parsing unless --no-stash is specified' ) run_parser.add_argument(