You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1ef126e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(config): recognize subcommands after leading global flags
Launchers that prepend global flags (`corbits --cwd "$dir" "$@"`) turned
`resume` into the first message of a fresh session. The verb is now the
first token that is neither a flag nor a flag's value, and `--` ends flag
parsing so a prompt that is literally a verb stays expressible.
Copy file name to clipboardExpand all lines: docs/IMPLEMENTATION.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -445,10 +445,11 @@ Printed by `corbits --help` / `-h` from `CLI_HELP_TEXT` in `src/config/index.ts`
445
445
|`--auto`| true (default) | Force auto mode on (workspace writes + unconstrained shell without prompts) |
446
446
|`--no-auto`| false | Start with auto mode off (ask on every consequential action); no in-session key toggles it |
447
447
|`--no-workflow`| — | Deprecated no-op: accepted with a stderr warning and ignored (kept for one release so existing wrappers keep starting; will become `unrecognized flag` after removal) |
448
+
|`--`| — | End of flags: every later token is prompt text, even one spelled like a verb or flag (`corbits -- resume`, `corbits exec -- run`) |
448
449
|`--help`, `-h`| — | Show help (exit 0 via `CliHelpError`) |
449
450
|`--version`, `-V`| — | Print `corbits v` plus the running `package.json` version (exit 0 via `CliVersionError`) |
450
451
451
-
Positional arguments after flags are joined into the optional initial task delivered when the TUI mounts. With no positional task, the operator starts from an empty prompt.
452
+
Global flags may precede the verb (`corbits --cwd <dir> resume`): the verb is the first token that is neither a flag nor a flag's value, and only that token is checked, so `corbits fix the resume bug` stays a prompt. Positional arguments after flags are joined into the optional initial task delivered when the TUI mounts. With no positional task, the operator starts from an empty prompt.
0 commit comments