commands help

This commit is contained in:
2017-01-21 21:51:12 -05:00
parent 35607c48e9
commit 5af6bb020d
+4
View File
@@ -269,9 +269,13 @@ def which_python():
@click.pass_context
def cli(ctx, where=False, bare=False):
if ctx.invoked_subcommand is None:
# --where was passed...
if where:
do_where(bare=bare)
# Display help to user, if no commands were passed.
click.echo(ctx.get_help())
@click.command(help="Installs a provided package and adds it to Pipfile, or (if none is given), installs all packages.")