MCPcopy
hub / github.com/MiniMax-AI/cli / isBooleanDef

Function isBooleanDef

src/args.ts:15–19  ·  view source on GitHub ↗

Boolean when no value placeholder and type is not string/number/array

(def: OptionDef)

Source from the content-addressed store, hash-verified

13
14/** Boolean when no value placeholder and type is not string/number/array */
15function isBooleanDef(def: OptionDef): boolean {
16 if (def.type === 'boolean') return true;
17 if (def.type === 'string' || def.type === 'number' || def.type === 'array') return false;
18 return !def.flag.includes('<') && !def.flag.includes('[');
19}
20
21interface FlagSchema {
22 booleans: Set<string>;

Callers 1

buildSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected