Skip to content

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

Add TODO comment about args_conflicts_with_subcommands limitation

Maximilian Roos1f89f52874ce
diff --git a/src/cli.rs b/src/cli.rs
index ed96d521f..9b2486cec 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1638,6 +1638,10 @@ wt list --format=json | jq '.[] | select(.main_state == "integrated" or .main_st
- [wt select](@/select.md) — Interactive worktree picker with live preview
"#
)]
+ // TODO: `args_conflicts_with_subcommands` causes confusing errors for unknown
+ // subcommands ("cannot be used with --branches") instead of "unknown subcommand".
+ // Could fix with external_subcommand + post-parse validation, but not worth the
+ // code. The `statusline` subcommand may move elsewhere anyway.
#[command(args_conflicts_with_subcommands = true)]
List {
#[command(subcommand)]