Skip to content

Commit 77a1a29

Browse files
committed
Merge pull request pre-commit#350 from brettmcintosh/help_text_fixes
Improve help text
2 parents 3b28e8f + 4bb2bfe commit 77a1a29

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pre_commit/main.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def main(argv=None):
7979
run_parser.add_argument('hook', nargs='?', help='A single hook-id to run')
8080
run_parser.add_argument(
8181
'--color', default='auto', type=color.use_color,
82-
help='Whether to use color in output. Defaults to `auto`',
82+
help='Whether to use color in output. Choices are `always`, `never`'
83+
', or `auto`. Defaults to `auto`.',
8384
)
8485
run_parser.add_argument(
8586
'--no-stash', default=False, action='store_true',
@@ -90,20 +91,20 @@ def main(argv=None):
9091
)
9192
run_parser.add_argument(
9293
'--origin', '-o',
93-
help='The origin branch\'s commit_id when using `git push`',
94+
help='The origin branch\'s commit_id when using `git push`.',
9495
)
9596
run_parser.add_argument(
9697
'--source', '-s',
97-
help='The remote branch\'s commit_id when using `git push`',
98+
help='The remote branch\'s commit_id when using `git push`.',
9899
)
99100
run_parser.add_argument(
100101
'--allow-unstaged-config', default=False, action='store_true',
101-
help='Allow an unstaged config to be present. Note that this will'
102-
'be stashed before parsing unless --no-stash is specified'
102+
help='Allow an unstaged config to be present. Note that this will '
103+
'be stashed before parsing unless --no-stash is specified.'
103104
)
104105
run_parser.add_argument(
105106
'--hook-stage', choices=('commit', 'push'), default='commit',
106-
help='The stage during which the hook is fired e.g. commit or push',
107+
help='The stage during which the hook is fired e.g. commit or push.',
107108
)
108109
run_mutex_group = run_parser.add_mutually_exclusive_group(required=False)
109110
run_mutex_group.add_argument(

0 commit comments

Comments
 (0)