From 958df4e17c4e9cb7bded17318444cc5c70acf95c Mon Sep 17 00:00:00 2001 From: Mariatta Wijaya Date: Sat, 13 May 2017 13:52:46 -0700 Subject: [PATCH] Support `-h` Closes https://github.com/python/core-workflow/issues/88 --- cherry_picker/cherry_picker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cherry_picker/cherry_picker.py b/cherry_picker/cherry_picker.py index d4c2df6..29c160a 100755 --- a/cherry_picker/cherry_picker.py +++ b/cherry_picker/cherry_picker.py @@ -251,7 +251,9 @@ def continue_cherry_pick(self): click.echo(u"Currently in `master` branch. Will not continue. \U0001F61B") -@click.command() +CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) + +@click.command(context_settings=CONTEXT_SETTINGS) @click.option('--dry-run', is_flag=True, help="Prints out the commands, but not executed.") @click.option('--push', 'pr_remote', metavar='REMOTE',