MCPcopy Create free account
hub / github.com/backnotprop/plannotator / isTopLevelHelpInvocation

Function isTopLevelHelpInvocation

apps/hook/server/cli.ts:8–10  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

6}
7
8export function isTopLevelHelpInvocation(args: string[]): boolean {
9 return args.length > 0 && HELP_FLAGS.has(args[0]);
10}
11
12export function isVersionInvocation(args: string[]): boolean {
13 return args[0] === "--version" || args[0] === "-v";

Callers 2

index.tsFile · 0.90
cli.test.tsFile · 0.90

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected