Skip to content

Commit 3fdff36

Browse files
author
zhansheng.lzs
committed
refactor(cli): hide fine-tunes command, use ft as primary
- Set fine-tunes as hidden in help output (hidden=True) - Keep ft as the primary command name - fine-tunes command still works for backward compatibility - Reduces command list clutter in main help
1 parent b700ed3 commit 3fdff36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dashscope/cli/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ def _extract_global_api_key(argv):
148148

149149
# Register sub-command groups
150150
app.add_typer(generation.app)
151-
app.add_typer(fine_tunes.app)
152-
app.add_typer(fine_tunes.app, name="ft") # 别名:ft
151+
app.add_typer(fine_tunes.app, name="ft") # 主要命令
152+
app.add_typer(fine_tunes.app, name="fine-tunes", hidden=True) # 隐藏,向后兼容
153153
app.add_typer(files.app)
154154
app.add_typer(deployments.app)
155155
app.add_typer(oss.app)

0 commit comments

Comments
 (0)