MCPcopy Create free account
hub / github.com/claude-code-internals/claude-code-runnable / printHelp

Function printHelp

src/localRecoveryCli.ts:7–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5type OutputFormat = 'text' | 'json'
6
7function printHelp(): void {
8 process.stdout.write(
9 [
10 'Usage: claude-code [options] [prompt]',
11 '',
12 'Local recovery mode for this restored source tree.',
13 '',
14 'Options:',
15 ' -h, --help Show help',
16 ' -v, --version Show version',
17 ' (no args) Start local interactive mode',
18 ' -p, --print Send a single prompt and print the result',
19 ' --model <model> Override model',
20 ' --system-prompt <text> Override system prompt',
21 ' --system-prompt-file <file> Read system prompt from file',
22 ' --append-system-prompt <text> Append to the system prompt',
23 ' --output-format <format> text (default) or json',
24 '',
25 'Environment:',
26 ' ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN',
27 ' ANTHROPIC_BASE_URL',
28 ' ANTHROPIC_MODEL',
29 ' API_TIMEOUT_MS',
30 '',
31 ].join('\n'),
32 )
33}
34
35function printVersion(): void {
36 process.stdout.write('2.1.88-local (Claude Code local recovery)\n')

Callers 1

runFunction · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected