fix: Remove conflicting "-h" aliases in TUI spawn and thread commands (#3651)

This commit is contained in:
Haris Gušić
2025-10-31 22:59:59 +01:00
committed by GitHub
parent 60dc38050d
commit a5ede68241
6 changed files with 43 additions and 25 deletions

View File

@@ -38,6 +38,7 @@ process.on("uncaughtException", (e) => {
const cli = yargs(hideBin(process.argv))
.scriptName("opencode")
.help("help", "show help")
.alias("help", "h")
.version("version", "show version number", Installation.VERSION)
.alias("version", "v")
.option("print-logs", {
@@ -140,5 +141,5 @@ try {
// Most notably, some docker-container-based MCP servers don't handle such signals unless
// run using `docker run --init`.
// Explicitly exit to avoid any hanging subprocesses.
process.exit();
process.exit()
}