Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit ec104ce

Browse files
fix: Return help for codegate cli. (#642)
Small fix
1 parent cd892f3 commit ec104ce

File tree

1 file changed

+2
-1
lines changed
  • src/codegate/pipeline/cli

1 file changed

+2
-1
lines changed

src/codegate/pipeline/cli/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ async def codegate_cli(command):
3232
available_commands = {
3333
"version": Version().exec,
3434
"workspace": Workspace().exec,
35-
"-h": lambda _: HELP_TEXT,
3635
}
3736
out_func = available_commands.get(command[0])
3837
if out_func is None:
38+
if command[0] == "-h":
39+
return HELP_TEXT
3940
return NOT_FOUND_TEXT
4041

4142
return await out_func(command[1:])

0 commit comments

Comments
 (0)