Skip to content

Commit 958df4e

Browse files
committed
Support -h
Closes python#88
1 parent 8e3e60d commit 958df4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cherry_picker/cherry_picker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ def continue_cherry_pick(self):
251251
click.echo(u"Currently in `master` branch. Will not continue. \U0001F61B")
252252

253253

254-
@click.command()
254+
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
255+
256+
@click.command(context_settings=CONTEXT_SETTINGS)
255257
@click.option('--dry-run', is_flag=True,
256258
help="Prints out the commands, but not executed.")
257259
@click.option('--push', 'pr_remote', metavar='REMOTE',

0 commit comments

Comments
 (0)