From 9ded47911691b862dac5d3013117393451307979 Mon Sep 17 00:00:00 2001 From: Delweng Zheng Date: Tue, 29 Oct 2019 17:16:15 +0800 Subject: [PATCH] Feat(cli): support -h and --help --- bitcoinetl/cli/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoinetl/cli/__init__.py b/bitcoinetl/cli/__init__.py index ff551ed..83a20b9 100644 --- a/bitcoinetl/cli/__init__.py +++ b/bitcoinetl/cli/__init__.py @@ -29,8 +29,8 @@ from bitcoinetl.cli.stream import stream -@click.group() -@click.version_option(version='1.3.1') +@click.group(context_settings=dict(help_option_names=["-h", "--help"])) +@click.version_option(version="1.3.1") @click.pass_context def cli(ctx): pass