Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Update remove command help text for worktrees argument

Maximilian Roos3896d7e13808
diff --git a/docs/content/remove.md b/docs/content/remove.md
index 40df49ef1..99cf7ee9c 100644
--- a/docs/content/remove.md
+++ b/docs/content/remove.md
@@ -77,7 +77,7 @@ Usage: <b><span class=c>wt remove</span></b> <span class=c>[OPTIONS]</span> <spa
<b><span class=g>Arguments:</span></b>
<span class=c>[WORKTREES]...</span>
- Worktree or branch (@ for current)
+ Worktree or branch [default: current]
<b><span class=g>Options:</span></b>
<b><span class=c>--no-delete-branch</span></b>
diff --git a/src/cli.rs b/src/cli.rs
index f5d8c3966..7d114c459 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -2309,7 +2309,7 @@ Removal runs in the background by default (returns immediately). Logs are writte
"#
)]
Remove {
- /// Worktree or branch (@ for current)
+ /// Worktree or branch [default: current]
#[arg(add = crate::completion::local_branches_completer())]
worktrees: Vec<String>,
diff --git a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap b/tests/snapshots/integration__integration_tests__help__help_remove_long.snap
index 3c91742d1..e9162c465 100644
--- a/tests/snapshots/integration__integration_tests__help__help_remove_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_remove_long.snap
@@ -8,7 +8,7 @@ info:
env:
CLICOLOR_FORCE: "1"
COLUMNS: "150"
- GIT_CONFIG_GLOBAL: ""
+ GIT_EDITOR: ""
RUST_LOG: warn
SOURCE_DATE_EPOCH: "1735776000"
WORKTRUNK_CONFIG_PATH: /nonexistent/test/config.toml
@@ -24,7 +24,7 @@ Usage: wt remove [OPTIONS] [WORKTREES]...
Arguments:
[WORKTREES]...
- Worktree or branch (@ for current)
+ Worktree or branch [default: current]
Options:
--no-delete-branch
diff --git a/tests/snapshots/integration__integration_tests__help__help_remove_short.snap b/tests/snapshots/integration__integration_tests__help__help_remove_short.snap
index c1ea2c032..92f863805 100644
--- a/tests/snapshots/integration__integration_tests__help__help_remove_short.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_remove_short.snap
@@ -9,6 +9,7 @@ info:
CLICOLOR_FORCE: "1"
COLUMNS: "150"
GIT_EDITOR: ""
+ RUST_LOG: warn
SOURCE_DATE_EPOCH: "1735776000"
WORKTRUNK_CONFIG_PATH: /nonexistent/test/config.toml
---
@@ -22,7 +23,7 @@ wt remove - Remove worktree and branch
Usage: wt remove [OPTIONS] [WORKTREES]...
Arguments:
- [WORKTREES]... Worktree or branch (@ for current)
+ [WORKTREES]... Worktree or branch [default: current]
Options:
--no-delete-branch Keep branch after removal