fix: scope trans download help

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
Codex
2026-07-11 05:36:44 +02:00
parent 06ce779608
commit b60aba9dbe
6 changed files with 174 additions and 5 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { readConfig } from "./src/config";
import { isHelpToken, sshHelp } from "./src/help";
import { isHelpToken, sshHelp, sshHelpScope } from "./src/help";
import { emitError, emitJson } from "./src/output";
import { extractRemoteCliOptions } from "./src/remote-options";
import { runRemoteSshCli } from "./src/remote-ssh";
@@ -30,7 +30,7 @@ async function main(): Promise<void> {
if (top !== "ssh") throw new Error(`ssh-cli supports only the ssh command, got: ${top || "<empty>"}`);
if (sub === undefined || isHelpToken(sub) || (isHelpToken(third) && args.length === 3)) {
emitJson(commandName, sshHelp());
emitJson(commandName, sshHelp(sshHelpScope(args)));
return;
}