Skip to content

Commit

Permalink
fix: Return help for codegate cli. (#642)
Browse files Browse the repository at this point in the history
Small fix
  • Loading branch information
aponcedeleonch authored Jan 17, 2025
1 parent cd892f3 commit ec104ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codegate/pipeline/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:])
Expand Down

0 comments on commit ec104ce

Please sign in to comment.