From: Loren Carvalho Date: Fri, 8 Jun 2018 02:43:04 +0000 (-0500) Subject: Add `-h` as a shortcut for `--help` (#316) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/39e9347687618ebefab26df35f770fc85b6173b1?hp=7f3678885fc7ab6f9fb1749f6d2a8ed3468841f3 Add `-h` as a shortcut for `--help` (#316) --- diff --git a/black.py b/black.py index 1d2f1a3..37d99bd 100644 --- a/black.py +++ b/black.py @@ -191,7 +191,7 @@ def read_pyproject_toml( return value -@click.command() +@click.command(context_settings=dict(help_option_names=["-h", "--help"])) @click.option( "-l", "--line-length",