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