Fix Windows: remove -- separator (psmux incompatible), add unknown command error

- Remove -- separator from tmux args (psmux on Windows doesn't support it)
- Unknown subcommands now show error + usage (exit 1) instead of starting TUI
- --help now always shows usage and exits (no fallthrough to TUI)
This commit is contained in:
2026-08-09 20:56:39 +02:00
parent 8546ac9bf2
commit 313dffcbbf
3 changed files with 11 additions and 9 deletions
+3 -3
View File
@@ -92,10 +92,10 @@ Example startup command (generic placeholders):
# Kill stale session first (separate command — tmux aborts on kill-session error).
tmux kill-session -t kctl
tmux new-session -d -s kctl \
-- "kctl-tui panel --context=$CTX_A --ns=$NS --team=$TEAM" \; \
"kctl-tui panel --context=$CTX_A --ns=$NS --team=$TEAM" \; \
set-option -t kctl remain-on-exit on \; \
split-window -v -t kctl:0.0 -- "k9s --context $CTX_A -n $NS" \; \
split-window -v -t kctl:0.1 -- "k9s --context $CTX_B -n $NS" \; \
split-window -v -t kctl:0.0 "k9s --context $CTX_A -n $NS" \; \
split-window -v -t kctl:0.1 "k9s --context $CTX_B -n $NS" \; \
select-layout -t kctl even-vertical \; \
select-pane -t kctl:0.0 \; \
attach -t kctl