From 145e6e96cf9857d835a7716f90c80064297ea28c Mon Sep 17 00:00:00 2001 From: Josh Brobst Date: Wed, 11 Jun 2025 18:39:41 -0400 Subject: [PATCH] Use a consistent style for CLI help --- src/hatch/cli/__init__.py | 2 +- src/hatch/cli/run/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hatch/cli/__init__.py b/src/hatch/cli/__init__.py index 242b7b626..660511d42 100644 --- a/src/hatch/cli/__init__.py +++ b/src/hatch/cli/__init__.py @@ -141,7 +141,7 @@ def hatch(ctx: click.Context, env_name, project, verbose, quiet, color, interact ) if not ctx.invoked_subcommand: - app.display_info(ctx.get_help()) + click.echo(ctx.get_help()) return # Persist app data for sub-commands diff --git a/src/hatch/cli/run/__init__.py b/src/hatch/cli/run/__init__.py index db5b13ed6..3bc02a795 100644 --- a/src/hatch/cli/run/__init__.py +++ b/src/hatch/cli/run/__init__.py @@ -61,7 +61,7 @@ def run(ctx: click.Context, args: tuple[str, ...]): first_arg = args[0] if first_arg in {'-h', '--help'}: - app.display_info(ctx.get_help()) + click.echo(ctx.get_help()) return from hatch.utils.fs import Path