From 39e9347687618ebefab26df35f770fc85b6173b1 Mon Sep 17 00:00:00 2001 From: Loren Carvalho Date: Thu, 7 Jun 2018 21:43:04 -0500 Subject: [PATCH 1/1] Add `-h` as a shortcut for `--help` (#316) --- black.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.5