MCPcopy Index your code
hub / github.com/anomalyco/opencode / hasArg

Function hasArg

packages/opencode/src/cli/network.ts:41–43  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

39}
40
41export function hasArg(name: string) {
42 return networkArgs().some((arg) => arg === name || arg.startsWith(name + "="))
43}
44
45function hasBooleanArg(name: string) {
46 return networkArgs().some(

Callers 2

tui.tsFile · 0.90

Calls 1

networkArgsFunction · 0.85

Tested by

no test coverage detected