MCPcopy Index your code
hub / github.com/callstack/agent-device / runNoCommandFastPath

Function runNoCommandFastPath

src/bin.ts:33–42  ·  view source on GitHub ↗
(argv: string[])

Source from the content-addressed store, hash-verified

31}
32
33function runNoCommandFastPath(argv: string[]): boolean {
34 if (argv.length !== 0) return false;
35 import('./cli/parser/cli-help.ts')
36 .then(({ buildUsageText }) => {
37 process.stdout.write(`${buildUsageText()}\n`);
38 process.exit(1);
39 })
40 .catch(handleStartupError);
41 return true;
42}
43
44function runHelpFastPath(argv: string[]): boolean {
45 const helpTarget = resolveSimpleHelpTarget(argv);

Callers 1

runFastPathFunction · 0.85

Calls 2

buildUsageTextFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected