Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Clarify --execute command behavior in help text
Maximilian Roos83fd393013b0
diff --git a/docs/content/switch.md b/docs/content/switch.mdindex e72af8639..c40254b40 100644--- a/docs/content/switch.md+++ b/docs/content/switch.md@@ -113,7 +113,7 @@ Usage: <b><span class=c>wt switch</span></b> <span class=c>[OPTIONS]</span> <spaThen <b>wsc feature-branch</b> creates the worktree and launches Claude Code.Arguments after <b>--</b> are passed to the command, so <b>wsc feature -- 'Fix</b>- GH #322' works.+ GH #322' runs <b>claude 'Fix GH #322'</b>, starting Claude with a prompt.<b><span class=c>-y</span></b>, <b><span class=c>--yes</span></b>Skip approval promptsdiff --git a/docs/content/tips-patterns.md b/docs/content/tips-patterns.mdindex 36f4dc69f..9762afb77 100644--- a/docs/content/tips-patterns.md+++ b/docs/content/tips-patterns.md@@ -15,7 +15,7 @@ Create a worktree and launch Claude in one command:```bashalias wsc='wt switch --create --execute=claude'wsc new-feature # Creates worktree, runs hooks, launches Claude-wsc feature -- 'Fix GH #322' # Pass initial prompt to Claude+wsc feature -- 'Fix GH #322' # Runs `claude 'Fix GH #322'````## Eliminate cold startsdiff --git a/src/cli.rs b/src/cli.rsindex e64adae18..2d894ae7e 100644--- a/src/cli.rs+++ b/src/cli.rs@@ -2238,7 +2238,8 @@ wt switch --create fix --base=@ # Branch from current HEAD////// Then `wsc feature-branch` creates the worktree and launches Claude/// Code. Arguments after `--` are passed to the command, so- /// `wsc feature -- 'Fix GH #322'` works.+ /// `wsc feature -- 'Fix GH #322'` runs `claude 'Fix GH #322'`,+ /// starting Claude with a prompt.#[arg(short = 'x', long)]execute: Option<String>,diff --git a/tests/snapshots/integration__integration_tests__help__help_page_switch.snap b/tests/snapshots/integration__integration_tests__help__help_page_switch.snapindex 2c74952f0..ccc3df609 100644--- a/tests/snapshots/integration__integration_tests__help__help_page_switch.snap+++ b/tests/snapshots/integration__integration_tests__help__help_page_switch.snap@@ -123,7 +123,7 @@ Usage: [1m[36mwt switch[0m [36m[OPTIONS][0m [36m<BRANCH>[0m [1m[36m[--[0m[0mThen [1mwsc feature-branch[0m creates the worktree and launches Claude Code.Arguments after [1m--[0m are passed to the command, so [1mwsc feature -- 'Fix- GH #322'[0m works.[0m+ GH #322'[0m runs [1mclaude 'Fix GH #322'[0m, starting Claude with a prompt.[0m[1m[36m-y[0m, [1m[36m--yes[0mSkip approval promptsdiff --git a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap b/tests/snapshots/integration__integration_tests__help__help_switch_long.snapindex 8e0595afe..ca225d624 100644--- a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap+++ b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap@@ -54,7 +54,7 @@ Usage: [1m[36mwt switch[0m [36m[OPTIONS][0m [36m<BRANCH>[0m [1m[36m[--[1mwsc feature-branch -- 'Fix GH #322'[0mThen [1mwsc feature-branch[0m creates the worktree and launches Claude Code. Arguments after [1m--[0m are passed to the command, so [1mwsc feature -- 'Fix- GH #322'[0m works.+ GH #322'[0m runs [1mclaude 'Fix GH #322'[0m, starting Claude with a prompt.[1m[36m-y[0m, [1m[36m--yesSkip approval prompts