MCPcopy Create free account
hub / github.com/aptdnfapt/qwen-code-oai-proxy / runUsageCommand

Function runUsageCommand

usage.ts:103–110  ·  view source on GitHub ↗
(args: string[] = process.argv.slice(2), options: { commandName?: string } = {})

Source from the content-addressed store, hash-verified

101}
102
103export async function runUsageCommand(args: string[] = process.argv.slice(2), options: { commandName?: string } = {}): Promise<void> {
104 const commandName = options.commandName || "npm run usage";
105 if (args.length > 0 && (args[0] === "--help" || args[0] === "-h" || args[0] === "help")) {
106 printUsage(commandName);
107 return;
108 }
109 await showUsageReport();
110}
111
112if (require.main === module) {
113 void runUsageCommand().catch((error: any) => {

Callers 2

usage.tsFile · 0.85
runFunction · 0.85

Calls 2

printUsageFunction · 0.85
showUsageReportFunction · 0.85

Tested by

no test coverage detected