Skip to content

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

fix: remove trailing blank lines from --help output (#621)

Maximilian Roos0a82dde7951e
diff --git a/docs/content/config.md b/docs/content/config.md
index 01a44b208..8fa285552 100644
--- a/docs/content/config.md
+++ b/docs/content/config.md
@@ -451,7 +451,6 @@ Usage: <b><span class=c>wt config show</span></b> <span class=c>[OPTIONS]</span>
Show debug info (-v), or also write diagnostic report (-vv)
{% end %}
-
## wt config state
State is stored in `.git/` (config entries and log files), separate from configuration files.
@@ -583,7 +582,6 @@ Usage: <b><span class=c>wt config state default-branch</span></b> <span class=c>
Show debug info (-v), or also write diagnostic report (-vv)
{% end %}
-
## wt config state ci-status
Caches GitHub/GitLab CI status for display in [`wt list`](@/list.md#ci-status).
@@ -636,7 +634,6 @@ Usage: <b><span class=c>wt config state ci-status</span></b> <span class=c>[OPTI
Show debug info (-v), or also write diagnostic report (-vv)
{% end %}
-
## wt config state marker
Custom status text or emoji shown in the `wt list` Status column.
@@ -695,7 +692,6 @@ Usage: <b><span class=c>wt config state marker</span></b> <span class=c>[OPTIONS
Show debug info (-v), or also write diagnostic report (-vv)
{% end %}
-
## wt config state logs
View and manage logs from background operations.
diff --git a/docs/content/step.md b/docs/content/step.md
index 647f13d5d..b3fff553d 100644
--- a/docs/content/step.md
+++ b/docs/content/step.md
@@ -220,7 +220,6 @@ Usage: <b><span class=c>wt step copy-ignored</span></b> <span class=c>[OPTIONS]<
Show debug info (-v), or also write diagnostic report (-vv)
{% end %}
-
## wt step for-each
Executes a command sequentially in every worktree with real-time output. Continues on failure and shows a summary at the end.
diff --git a/src/cli/config.rs b/src/cli/config.rs
index 6f6424a29..b260eb101 100644
--- a/src/cli/config.rs
+++ b/src/cli/config.rs
@@ -261,13 +261,9 @@ Clear all stored state:
```console
wt config state clear
```
-
<!-- subdoc: default-branch -->
-
<!-- subdoc: ci-status -->
-
<!-- subdoc: marker -->
-
<!-- subdoc: logs -->"#
)]
State {
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index fd4ba3fcb..c927df286 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -1021,11 +1021,8 @@ wt step commit --show-prompt | llm -m gpt-5-nano
- [`wt merge`](@/merge.md) — Runs commit → squash → rebase → hooks → push → cleanup automatically
- [`wt hook`](@/hook.md) — Run configured hooks
-
<!-- subdoc: copy-ignored -->
-
-<!-- subdoc: for-each -->
-"#
+<!-- subdoc: for-each -->"#
)]
Step {
#[command(subcommand)]
@@ -1804,11 +1801,8 @@ WORKTRUNK_COMMIT_GENERATION__ARGS="test: automated commit" \
| `WORKTRUNK_MAX_CONCURRENT_COMMANDS` | Max parallel git commands (default: 32). Lower if hitting file descriptor limits. |
| `NO_COLOR` | Disable colored output ([standard](https://no-color.org/)) |
| `CLICOLOR_FORCE` | Force colored output even when not a TTY |
-
<!-- subdoc: show -->
-
-<!-- subdoc: state -->
-"#)
+<!-- subdoc: state -->"#)
)]
Config {
#[command(subcommand)]