From 38b28f64fbf9a3a30196fb451aa6d1338428a7ed Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Sun, 9 Aug 2026 21:00:45 +0200 Subject: [PATCH] Fix: no-args should start TUI, not print help The condition showHelp||len(filtered)==0 caused the tool to always print usage and exit. Now only --help triggers usage+exit. --- cmd/kctl-tui/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/kctl-tui/main.go b/cmd/kctl-tui/main.go index d48a622..33717e2 100644 --- a/cmd/kctl-tui/main.go +++ b/cmd/kctl-tui/main.go @@ -40,10 +40,13 @@ func main() { kubeexec.SetVerbose(true, os.Stderr) } - if showHelp || len(filtered) == 0 { + if showHelp { printUsage() return } + if len(filtered) == 0 { + // No subcommand — start the full TUI. + } if len(filtered) > 0 { switch filtered[0] {