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

Function withNetworkOptions

packages/opencode/src/cli/network.ts:37–39  ·  view source on GitHub ↗
(yargs: Argv<T>)

Source from the content-addressed store, hash-verified

35export type NetworkOptions = InferredOptionTypes<typeof options>
36
37export function withNetworkOptions<T>(yargs: Argv<T>) {
38 return yargs.options(options)
39}
40
41export function hasArg(name: string) {
42 return networkArgs().some((arg) => arg === name || arg.startsWith(name + "="))

Callers 4

tui.tsFile · 0.90
serve.tsFile · 0.90
acp.tsFile · 0.90
web.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected