Skip to content

Commit

Permalink
fix pipenv call without options
Browse files Browse the repository at this point in the history
  • Loading branch information
aidencullo authored and oz123 committed Jul 20, 2024
1 parent 7b18268 commit ae28fa3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions pipenv/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,8 @@ def cli(
pypi_mirror=state.pypi_mirror,
clear=state.clear,
)
# Check this again before exiting for empty ``pipenv`` command.
elif ctx.invoked_subcommand is None:
# Display help to user, if no commands were passed.
print(format_help(ctx.get_help()))
console.print(format_help(ctx.get_help()))


@cli.command(
Expand Down
2 changes: 1 addition & 1 deletion pipenv/cli/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_help_option(self, ctx):

def show_help(ctx, param, value):
if value and not ctx.resilient_parsing:
console.print(format_help(ctx.get_help()), highlight=False)
console.print(format_help(ctx.get_help()))
ctx.exit()

return Option(
Expand Down
3 changes: 1 addition & 2 deletions pipenv/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
from pipenv.patched.pip._vendor.rich.prompt import Confirm # noqa

logging.basicConfig(level=logging.INFO)

console = Console()
console = Console(highlight=False)
err = Console(stderr=True)

0 comments on commit ae28fa3

Please sign in to comment.