MCPcopy Index your code
hub / github.com/PaystackOSS/paystack-mcp-server / parseApiKey

Function parseApiKey

src/index.ts:3–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1#!/usr/bin/env node
2// Simple CLI argument parsing
3function parseApiKey(): string | undefined {
4 const args = process.argv;
5 const apiKeyIndex = args.findIndex((arg) => arg === '--api-key');
6
7 if (apiKeyIndex !== -1 && apiKeyIndex + 1 < args.length) {
8 return args[apiKeyIndex + 1];
9 }
10
11 return undefined;
12}
13
14// Show help message
15function showHelp() {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected