@@ -4,10 +4,18 @@ import { getBranchLabel } from "./git.ts";
44 import { streamHeadless } from "./headless.ts";
55 import { initTUI } from "./tui.ts";
66 import type { TUIState } from "./types.ts";
7+import { updateMiniCoder } from "./update.ts";
78
89 export async function main(): Promise<void> {
10+ const argv = process.argv.slice(2);
11+
12+ if (argv.includes("--update")) {
13+ await updateMiniCoder();
14+ return;
15+ }
16+
917 const cwd = basename(process.cwd());
10- const options = await handleArgv(process.argv.slice(2));
18+ const options = await handleArgv(argv);
1119
1220 function leave(msg?: string) {
1321 if (msg) console.log(msg);