(out: string)
| 33 | const args = hideBin(process.argv) |
| 34 | |
| 35 | function show(out: string) { |
| 36 | const text = out.trimStart() |
| 37 | if (!text.startsWith("opencode ")) { |
| 38 | process.stderr.write(UI.logo() + EOL + EOL) |
| 39 | process.stderr.write(text + EOL) |
| 40 | return |
| 41 | } |
| 42 | process.stderr.write(out) |
| 43 | } |
| 44 | |
| 45 | const cli = yargs(args) |
| 46 | .parserConfiguration({ "populate--": true }) |