Skip to content

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.md
index 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> <spa
Then <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 -- &#39;Fix</b>
- GH #322&#39; works.
+ GH #322&#39; runs <b>claude &#39;Fix GH #322&#39;</b>, starting Claude with a prompt.
<b><span class=c>-y</span></b>, <b><span class=c>--yes</span></b>
Skip approval prompts
diff --git a/docs/content/tips-patterns.md b/docs/content/tips-patterns.md
index 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:
```bash
alias 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 starts
diff --git a/src/cli.rs b/src/cli.rs
index 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.snap
index 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: wt switch [OPTIONS] <BRANCH> [--

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.
+ GH #322' runs claude 'Fix GH #322', starting Claude with a prompt.
-y, --yes
Skip approval prompts
diff --git a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
index 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: wt switch [OPTIONS] <BRANCH> [--
wsc feature-branch -- 'Fix GH #322'

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.
+ GH #322' runs claude 'Fix GH #322', starting Claude with a prompt.
-y, --yes
Skip approval prompts