From ba009376ff830b2aa4f2df40449fe9f45215ebaf Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 22 Jan 2017 00:41:24 -0500 Subject: [PATCH] fix run runner --- pipenv/cli.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 5ae97360..9744ce77 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -369,10 +369,14 @@ def shell(): # Interact with the new shell. c.interact() -@click.command(help="Spans a command installed into the virtualenv.") +@click.command(help="Spans a command installed into the virtualenv.", context_settings=dict( + ignore_unknown_options=True, + allow_extra_args=True +)) @click.argument('command') @click.argument('args', nargs=-1) -def run(command, args): +@click.pass_context +def run(ctx, command, args): # Ensure that virtualenv is available. ensure_project()