MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / getBool

Function getBool

apps/desktop/src/cli/args.ts:72–76  ·  view source on GitHub ↗
(args: ParsedArgs, name: string)

Source from the content-addressed store, hash-verified

70}
71
72export function getBool(args: ParsedArgs, name: string): boolean {
73 const v = getString(args, name)
74 if (v == null) return false
75 return v === 'true' || v === '1' || v === 'yes'
76}
77
78export function getNumber(args: ParsedArgs, name: string): number | undefined {
79 const v = getString(args, name)

Callers 15

cmdTagListFunction · 0.85
cmdTagFindFunction · 0.85
cmdTaskListFunction · 0.85
cmdTaskToggleFunction · 0.85
cmdCaptureFunction · 0.85
cmdVaultInfoFunction · 0.85
cmdVaultListFunction · 0.85
cmdSearchFunction · 0.85
cmdSearchTitleFunction · 0.85
cmdBacklinksFunction · 0.85
cmdFolderListFunction · 0.85
cmdFolderCreateFunction · 0.85

Calls 1

getStringFunction · 0.85

Tested by

no test coverage detected