summaryrefslogtreecommitdiff
path: root/buildstream/_frontend/cli.py
diff options
context:
space:
mode:
authorEd Baunton <>2018-06-07 14:43:27 +0100
committerEd Baunton <>2018-06-07 14:43:27 +0100
commite36001f92d1ac3e3e40863e2683cd2baba2175fa (patch)
tree19b1b574165d572c5bc3899a25c4816403a94fd0 /buildstream/_frontend/cli.py
parent69e594433df417324f4015c0364088acfacc1a72 (diff)
downloadbuildstream-e36001f92d1ac3e3e40863e2683cd2baba2175fa.tar.gz
Make `bst help` work
Diffstat (limited to 'buildstream/_frontend/cli.py')
-rw-r--r--buildstream/_frontend/cli.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py
index 5ed967d9d..bc17fed87 100644
--- a/buildstream/_frontend/cli.py
+++ b/buildstream/_frontend/cli.py
@@ -189,6 +189,10 @@ def cli(context, **kwargs):
context.obj = App.create(dict(kwargs))
context.call_on_close(context.obj.cleanup)
+@cli.command(short_help="Print usage information")
+@click.pass_context
+def help(ctx):
+ click.echo(ctx.parent.get_help())
##################################################################
# Init Command #