Skip to content

Commit 4c15cb0

Browse files
committed
fix pipenv call without options
1 parent 4a286ed commit 4c15cb0

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pipenv/cli/command.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,8 @@ def cli(
186186
pypi_mirror=state.pypi_mirror,
187187
clear=state.clear,
188188
)
189-
# Check this again before exiting for empty ``pipenv`` command.
190189
elif ctx.invoked_subcommand is None:
191-
# Display help to user, if no commands were passed.
192-
print(format_help(ctx.get_help()))
190+
console.print(format_help(ctx.get_help()))
193191

194192

195193
@cli.command(

pipenv/cli/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_help_option(self, ctx):
3232

3333
def show_help(ctx, param, value):
3434
if value and not ctx.resilient_parsing:
35-
console.print(format_help(ctx.get_help()), highlight=False)
35+
console.print(format_help(ctx.get_help()))
3636
ctx.exit()
3737

3838
return Option(

pipenv/utils/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
from pipenv.patched.pip._vendor.rich.console import Console
44

55
logging.basicConfig(level=logging.INFO)
6-
7-
console = Console()
6+
console = Console(highlight=False)
87
err = Console(stderr=True)

0 commit comments

Comments
 (0)