Enha: return help message on unexpected command
This commit is contained in:
5
tools.go
5
tools.go
@@ -522,9 +522,8 @@ func runCmd(args map[string]string) []byte {
|
|||||||
// browser <action> [args...] - Playwright browser automation
|
// browser <action> [args...] - Playwright browser automation
|
||||||
return runBrowserCommand(rest, args)
|
return runBrowserCommand(rest, args)
|
||||||
default:
|
default:
|
||||||
// Everything else: shell with pipe/chaining support
|
// Unknown subcommand - return help to remind user of available commands
|
||||||
result := tools.ExecChain(commandStr)
|
return []byte(getHelp(nil))
|
||||||
return []byte(result)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user