Skip to content

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

Output version information to stderr

Maximilian Roosb31c118b449e
diff --git a/src/main.rs b/src/main.rs
index eab466bfd..a671d11db 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -106,7 +106,8 @@ fn maybe_handle_help_with_pager() -> bool {
process::exit(0);
}
ErrorKind::DisplayVersion => {
- println!("{}", err);
+ // Print to stderr - stdout is reserved for data/scripts
+ eprintln!("{}", err);
process::exit(0);
}
_ => {