From 58ee1a52205458a7ccc91e65eca7de2532d0cee9 Mon Sep 17 00:00:00 2001 From: chenbaowang <49091147+Rsweater@users.noreply.github.com> Date: Thu, 23 Apr 2026 14:17:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(install):=20=E4=BF=AE=E5=A4=8D=E5=B8=AE?= =?UTF-8?q?=E5=8A=A9=E6=96=87=E6=9C=AC=E4=B8=AD=E7=9A=84=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 --from 描述改为 'Alias for --add',避免与 -a, --add 的 描述互相引用导致循环感 --- skillhub-cli/src/commands/install.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/skillhub-cli/src/commands/install.ts b/skillhub-cli/src/commands/install.ts index a5ec716c..8552f02c 100644 --- a/skillhub-cli/src/commands/install.ts +++ b/skillhub-cli/src/commands/install.ts @@ -210,8 +210,8 @@ function buildInstallHelp(cmd: Command): string { lines.push(""); lines.push(chalk.bold("Source Options:")); - lines.push(` ${chalk.cyan("-a, --add ")} Install from GitHub or local path (alias for --from)`); - lines.push(` ${chalk.cyan("--from ")} Install from GitHub or local path (alias for -a)`); + lines.push(` ${chalk.cyan("-a, --add ")} Install from GitHub or local path`); + lines.push(` ${chalk.cyan("--from ")} Alias for --add`); lines.push(""); lines.push(chalk.bold("Target Options:")); @@ -250,8 +250,8 @@ export function registerInstall(program: Command) { .alias("i") .description("Install skills from registry, git repositories, or local paths") .argument("", "Skill name or namespace/skill-name from registry") - .option("-a, --add ", "Install from GitHub or local path (alias for --from)") - .option("--from ", "Install from GitHub or local path (alias for -a)") + .option("-a, --add ", "Install from GitHub or local path") + .option("--from ", "Alias for --add") .option("--agent ", "Target specific agents") .option("-g, --global", "Install to global scope") .option("-y, --yes", "Skip all prompts")