Skip to content

Commit

Permalink
remove unreachable echo call
Browse files Browse the repository at this point in the history
  • Loading branch information
aidencullo authored and oz123 committed Jul 20, 2024
1 parent 0b3db45 commit 7b18268
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 1 addition & 7 deletions pipenv/cli/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
Group,
Option,
argument,
echo,
make_pass_decorator,
option,
)
Expand All @@ -33,12 +32,7 @@ def get_help_option(self, ctx):

def show_help(ctx, param, value):
if value and not ctx.resilient_parsing:
if not ctx.invoked_subcommand:
# legit main help
console.print(format_help(ctx.get_help()), highlight=False)
else:
# legit sub-command help
echo(ctx.get_help(), color=ctx.color)
console.print(format_help(ctx.get_help()), highlight=False)
ctx.exit()

return Option(
Expand Down
3 changes: 0 additions & 3 deletions pipenv/utils/display.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from pipenv.vendor import click


def format_help(help):
"""Formats the help string."""
help = help.replace("Options:", "[bold]Options:[/bold]")
Expand Down

0 comments on commit 7b18268

Please sign in to comment.