From 1e0db9c2c8983f1f8e969686fa5cb3d5ef21ea91 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 12 Mar 2020 12:27:54 -0700 Subject: [PATCH] Fix help description for --from-ref and --to-ref --- pre_commit/main.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pre_commit/main.py b/pre_commit/main.py index 77833447..790b3477 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -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(