Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions pre_commit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ 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',
Expand All @@ -90,20 +91,20 @@ def main(argv=None):
)
run_parser.add_argument(
'--origin', '-o',
help='The origin branch\'s commit_id when using `git push`',
help='The origin branch\'s commit_id when using `git push`.',
)
run_parser.add_argument(
'--source', '-s',
help='The remote branch\'s commit_id when using `git push`',
help='The remote branch\'s commit_id when using `git push`.',
)
run_parser.add_argument(
'--allow-unstaged-config', default=False, action='store_true',
help='Allow an unstaged config to be present. Note that this will'
'be stashed before parsing unless --no-stash is specified'
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(
'--hook-stage', choices=('commit', 'push'), default='commit',
help='The stage during which the hook is fired e.g. commit or push',
help='The stage during which the hook is fired e.g. commit or push.',
)
run_mutex_group = run_parser.add_mutually_exclusive_group(required=False)
run_mutex_group.add_argument(
Expand Down