8000 Support `-h` (#90) · python/core-workflow@c32c89c · GitHub
[go: up one dir, main page]

Skip to content

Commit c32c89c

Browse files
authored
Support -h (#90)
Closes #88
1 parent 8e3e60d commit c32c89c

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)
0