Skip to content

Commit

Permalink
Fix typo in help docs for to-ref and from-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
leetrout committed Mar 2, 2022
1 parent 7858ad0 commit e58bcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre_commit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
parser.add_argument(
'--from-ref', '--source', '-s',
help=(
'(for usage with `--from-ref`) -- this option represents the '
'(for usage with `--to-ref`) -- this option represents the '
'original ref in a `from_ref...to_ref` diff expression. '
'For `pre-push` hooks, this represents the branch you are pushing '
'to. '
Expand All @@ -117,7 +117,7 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
parser.add_argument(
'--to-ref', '--origin', '-o',
help=(
'(for usage with `--to-ref`) -- this option represents the '
'(for usage with `--from-ref`) -- this option represents the '
'destination ref in a `from_ref...to_ref` diff expression. '
'For `pre-push` hooks, this represents the branch being pushed. '
'For `post-checkout` hooks, this represents the branch that is '
Expand Down

0 comments on commit e58bcb5

Please sign in to comment.