fix: remove unsupported mode flag, change to agent (#1979)

This commit is contained in:
Aiden Cline
2025-08-15 22:02:06 -05:00
committed by GitHub
parent f40feed190
commit 576f5242bc
2 changed files with 4 additions and 4 deletions

View File

@@ -55,9 +55,9 @@ export const TuiCommand = cmd({
type: "string",
describe: "prompt to use",
})
.option("mode", {
.option("agent", {
type: "string",
describe: "mode to use",
describe: "agent to use",
})
.option("port", {
type: "number",
@@ -129,7 +129,7 @@ export const TuiCommand = cmd({
...cmd,
...(args.model ? ["--model", args.model] : []),
...(args.prompt ? ["--prompt", args.prompt] : []),
...(args.mode ? ["--mode", args.mode] : []),
...(args.agent ? ["--agent", args.agent] : []),
...(sessionID ? ["--session", sessionID] : []),
],
cwd,

View File

@@ -346,6 +346,6 @@ The opencode CLI takes the following global flags.
| `--log-level` | | Log level (DEBUG, INFO, WARN, ERROR) |
| `--prompt` | `-p` | Prompt to use |
| `--model` | `-m` | Model to use in the form of provider/model |
| `--mode` | | Mode to use |
| `--agent` | | Agent to use |
| `--port` | | Port to listen on |
| `--hostname` | | Hostname to listen on |