diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-03-14 14:10:59 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-03-14 14:10:59 +0300 |
| commit | fdcaa6c5e2a192ce10e47a49dec7854b9e46ba75 (patch) | |
| tree | 9c59e45ae970c0745c6fcb800a16016f879643a6 /tools.go | |
| parent | 77c365959d61142a96f26d820a9ad2665101c34f (diff) | |
Enha: return help message on unexpected command
Diffstat (limited to 'tools.go')
| -rw-r--r-- | tools.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -522,9 +522,8 @@ func runCmd(args map[string]string) []byte { // browser <action> [args...] - Playwright browser automation return runBrowserCommand(rest, args) default: - // Everything else: shell with pipe/chaining support - result := tools.ExecChain(commandStr) - return []byte(result) + // Unknown subcommand - return help to remind user of available commands + return []byte(getHelp(nil)) } } |
