(options)
| 384 | */ |
| 385 | const commandToOptionsToKeys = {}; |
| 386 | const formatOptionString = (options) => { |
| 387 | return Object.entries(options) |
| 388 | .map(([k, v]) => { |
| 389 | // When the value of an option is true, then it was parsed as a flag. |
| 390 | if (v === true) { |
| 391 | return k; |
| 392 | } else { |
| 393 | return `${k}=${v}`; |
| 394 | } |
| 395 | }) |
| 396 | .join(" "); |
| 397 | }; |
| 398 | for (const key of Object.keys(this.keyToRegistryEntry || {})) { |
| 399 | const registryEntry = this.keyToRegistryEntry[key]; |
| 400 | const optionString = formatOptionString(registryEntry.options || {}); |
no outgoing calls
no test coverage detected