From 2e3ca70b6512169dcfe7cec9cb0a4d6f3aa9a412 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 11 Sep 2017 22:22:50 -0400 Subject: [PATCH] better help Signed-off-by: Kenneth Reitz --- pipenv/cli.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 5e878d18..c97f9861 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -907,6 +907,10 @@ def which_pip(allow_global=False): def format_help(help): """Formats the help string.""" + help = help.replace('Options:', str(crayons.white('Options:', bold=True))) + + help = help.replace('Usage: pipenv', str('Usage: {0}'.format(crayons.white('☤ pipenv', bold=True)))) + help = help.replace(' graph', str(crayons.green(' graph'))) help = help.replace(' check', str(crayons.green(' check'))) help = help.replace(' uninstall', str(crayons.yellow(' uninstall', bold=True))) @@ -927,10 +931,15 @@ Usage Examples: Create a lockfile: $ {2} + Show a graph of your installed dependencies: + $ {3} + Commands:""".format( crayons.red('pipenv --three'), crayons.red('pipenv install --dev'), - crayons.red('pipenv lock') + crayons.red('pipenv lock'), + crayons.red('pipenv graph') + ) help = help.replace('Commands:', additional_help)