summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2017-08-10 20:37:43 +0100
committerAngelos Evripiotis <jevripiotis@bloomberg.net>2017-08-11 12:50:44 +0100
commit745b70b9ce8f145e777134952a07c5e0444326c1 (patch)
treed467ec0d2aa6cf7c76139666b6e96909723c6bf6
parent84d481c780e79bdcadc5d29dbafdd5095d626d7c (diff)
downloadbuildstream-745b70b9ce8f145e777134952a07c5e0444326c1.tar.gz
Add '-h' as alias for '--help' on all commands
-rw-r--r--buildstream/_frontend/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index 679338137..510211b33 100644
--- a/buildstream/_frontend/main.py
+++ b/buildstream/_frontend/main.py
@@ -45,7 +45,7 @@ _, _, _, _, host_machine = os.uname()
##################################################################
# Main Options #
##################################################################
-@click.group()
+@click.group(context_settings=dict(help_option_names=['-h', '--help']))
@click.version_option(version=build_stream_version)
@click.option('--config', '-c',
type=click.Path(exists=True, dir_okay=False, readable=True),