Skip to content

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

Fix: Version output includes a newline

Maximilian Roos33be1352a67a
diff --git a/src/main.rs b/src/main.rs
index a9f80f264..856651166 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -107,7 +107,8 @@ fn maybe_handle_help_with_pager() -> bool {
}
ErrorKind::DisplayVersion => {
// Print to stderr - stdout is reserved for data/scripts
- eprintln!("{}", err);
+ // Use eprint! because clap's Error Display already includes a trailing newline
+ eprint!("{}", err);
process::exit(0);
}
_ => {