From 89024df67cb42c90c3971bb1f511ad06848456f6 Mon Sep 17 00:00:00 2001 From: Alejandro Ponce Date: Fri, 17 Jan 2025 15:06:14 +0200 Subject: [PATCH] fix: Return help for codegate cli. Small fix --- src/codegate/pipeline/cli/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/codegate/pipeline/cli/cli.py b/src/codegate/pipeline/cli/cli.py index 08e33fb4..333de7c9 100644 --- a/src/codegate/pipeline/cli/cli.py +++ b/src/codegate/pipeline/cli/cli.py @@ -32,10 +32,11 @@ async def codegate_cli(command): available_commands = { "version": Version().exec, "workspace": Workspace().exec, - "-h": lambda _: HELP_TEXT, } out_func = available_commands.get(command[0]) if out_func is None: + if command[0] == "-h": + return HELP_TEXT return NOT_FOUND_TEXT return await out_func(command[1:])