Skip to content

Commit

Permalink
Fix help description for --from-ref and --to-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Mar 12, 2020
1 parent 74c582f commit 1e0db9c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pre_commit/main.py
Expand Up @@ -111,21 +111,21 @@ def _add_run_options(parser: argparse.ArgumentParser) -> None:
'--from-ref', '--source', '-s',
help=(
'(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 '
'now checked out.'
'original ref in a `from_ref...to_ref` diff expression. '
'For `pre-push` hooks, this represents the branch you are pushing '
'to. '
'For `post-checkout` hooks, this represents the branch that was '
'previously checked out.'
),
)
parser.add_argument(
'--to-ref', '--origin', '-o',
help=(
'(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. '
'For `post-checkout` hooks, this represents the branch which was '
'previously checked out.'
'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 '
'now checked out.'
),
)
parser.add_argument(
Expand Down

0 comments on commit 1e0db9c

Please sign in to comment.