Skip to content

Commit

Permalink
Add -h alias for --help option (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan25 authored Jun 17, 2020
1 parent 5865cd1 commit e49c10d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion piptools/scripts/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def has_arg(self, arg_name):
return bool(self._os_args & args)


@click.command(cls=BaseCommand)
@click.command(
cls=BaseCommand, context_settings={"help_option_names": ("-h", "--help")}
)
@click.version_option()
@click.pass_context
@click.option("-v", "--verbose", count=True, help="Show more output")
Expand Down
2 changes: 1 addition & 1 deletion piptools/scripts/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
DEFAULT_REQUIREMENTS_FILE = "requirements.txt"


@click.command()
@click.command(context_settings={"help_option_names": ("-h", "--help")})
@click.version_option()
@click.option(
"-a",
Expand Down

0 comments on commit e49c10d

Please sign in to comment.