mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Improve help text
Add choices to --color help text. Fix typo in --allow-unstaged-config.
This commit is contained in:
parent
3b28e8f807
commit
23a140aa30
1 changed files with 2 additions and 2 deletions
|
|
@ -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('hook', nargs='?', help='A single hook-id to run')
|
||||||
run_parser.add_argument(
|
run_parser.add_argument(
|
||||||
'--color', default='auto', type=color.use_color,
|
'--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(
|
run_parser.add_argument(
|
||||||
'--no-stash', default=False, action='store_true',
|
'--no-stash', default=False, action='store_true',
|
||||||
|
|
@ -98,7 +98,7 @@ def main(argv=None):
|
||||||
)
|
)
|
||||||
run_parser.add_argument(
|
run_parser.add_argument(
|
||||||
'--allow-unstaged-config', default=False, action='store_true',
|
'--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'
|
'be stashed before parsing unless --no-stash is specified'
|
||||||
)
|
)
|
||||||
run_parser.add_argument(
|
run_parser.add_argument(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue