fix: scope trans download help
Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user