From 934d83e86de4cf036872a3dd2e68ada8a82fb1cb Mon Sep 17 00:00:00 2001 From: Erin O'Connell Date: Wed, 18 Oct 2017 23:53:39 -0600 Subject: [PATCH] disabled help message for run, help still prints out if you execute pipenv run with no args Signed-off-by: Erin O'Connell --- pipenv/cli.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 4ebd80b3..2d7b5534 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -2145,16 +2145,20 @@ def inline_activate_virtualenv(): ) -@click.command(help="Spawns a command installed into the virtualenv.", context_settings=dict( - ignore_unknown_options=True, - allow_extra_args=True -)) +@click.command( + add_help_option=False, + help="Spawns 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) @click.option('--three/--two', is_flag=True, default=None, help="Use Python 3/2 when creating virtualenv.") @click.option('--python', default=False, nargs=1, help="Specify which version of Python virtualenv should use.") def run(command, args, three=None, python=False): - + print(command ,args) # Ensure that virtualenv is available. ensure_project(three=three, python=python, validate=False)