MCPcopy Create free account
hub / github.com/CaviraOSS/OpenReason / parse_boolean

Function parse_boolean

src/cli/index.ts:34–37  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

32`
33
34const parse_boolean = (value?: string) => {
35 if (!value) return true
36 return !["false", "0", "no", "off"].includes(value.toLowerCase())
37}
38
39const parse_args = (argv: string[]): { options: cli_options; query: string } => {
40 const options: cli_options = {}

Callers 1

parse_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected