Skip to content

Commit f6e07d4

Browse files
vldcmp-uipathclaude
andcommitted
fix(cli): document the conditional --agent-framework default in help text
show_default rendered '[default: (langchain)]' even though the option is invalid without --type agent; state the conditional default in the help sentence instead. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 04810f1 commit f6e07d4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎packages/uipath/src/uipath/_cli/cli_new.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ def generate_uipath_json(target_directory):
7474
"agent_framework",
7575
type=click.Choice([f.value for f in AgentFramework]),
7676
default=None,
77-
show_default=DEFAULT_AGENT_FRAMEWORK.value,
78-
help="Agent framework to scaffold for. Only valid together with `--type agent`.",
77+
help=(
78+
"Agent framework to scaffold for. Only valid together with `--type agent`; "
79+
f"defaults to '{DEFAULT_AGENT_FRAMEWORK.value}' when `--type agent` is used."
80+
),
7981
)
8082
@track_command("new")
8183
def new(name: str, project_type: str, agent_framework: str | None):

0 commit comments

Comments
 (0)