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?ds=inline 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",