MCPcopy
hub / github.com/philc/vimium / formatOptionString

Function formatOptionString

background_scripts/commands.js:386–397  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

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 || {});

Callers 1

prepareHelpPageDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected