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.
This commit is contained in:
2026-08-09 21:00:45 +02:00
parent 6a749811c7
commit 38b28f64fb
+4 -1
View File
@@ -40,10 +40,13 @@ func main() {
kubeexec.SetVerbose(true, os.Stderr) kubeexec.SetVerbose(true, os.Stderr)
} }
if showHelp || len(filtered) == 0 { if showHelp {
printUsage() printUsage()
return return
} }
if len(filtered) == 0 {
// No subcommand — start the full TUI.
}
if len(filtered) > 0 { if len(filtered) > 0 {
switch filtered[0] { switch filtered[0] {