MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / optionalFlagArg

Function optionalFlagArg

scripts/cli-options.ts:168–170  ·  view source on GitHub ↗
(flag: string, enabled: boolean)

Source from the content-addressed store, hash-verified

166}
167
168export function optionalFlagArg(flag: string, enabled: boolean) {
169 return enabled ? [flag] : [];
170}
171
172export function optionalValueArg(flag: string, value: string | undefined) {
173 return value ? [flag, value] : [];

Callers 2

buildDraftCommandArgsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected