MCPcopy
hub / github.com/openai/codex-plugin-cc / parseCommandInput

Function parseCommandInput

plugins/codex/scripts/codex-companion.mjs:141–149  ·  view source on GitHub ↗
(argv, config = {})

Source from the content-addressed store, hash-verified

139}
140
141function parseCommandInput(argv, config = {}) {
142 return parseArgs(normalizeArgv(argv), {
143 ...config,
144 aliasMap: {
145 C: "cwd",
146 ...(config.aliasMap ?? {})
147 }
148 });
149}
150
151function resolveCommandCwd(options = {}) {
152 return options.cwd ? path.resolve(process.cwd(), options.cwd) : process.cwd();

Callers 9

handleSetupFunction · 0.85
handleReviewCommandFunction · 0.85
handleTaskFunction · 0.85
handleTransferFunction · 0.85
handleTaskWorkerFunction · 0.85
handleStatusFunction · 0.85
handleResultFunction · 0.85
handleCancelFunction · 0.85

Calls 2

parseArgsFunction · 0.90
normalizeArgvFunction · 0.85

Tested by

no test coverage detected