Skip to content

Commit ba49a74

Browse files
committed
fix(cli_createname): avoid -
1 parent 39a382d commit ba49a74

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

veadk/cli/cli_create.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ def create(agent_name: str, ark_api_key: str) -> None:
147147
"""
148148
if not agent_name:
149149
agent_name = click.prompt("Enter the agent name")
150+
151+
if "-" in agent_name:
152+
raise ValueError("Agent name cannot contain '-'. Use '_' instead.")
153+
150154
if not ark_api_key:
151155
ark_api_key = _prompt_for_ark_api_key()
152156

0 commit comments

Comments
 (0)