This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// moved: github.com/ShinyWobbuffet/nsfp | |
function parse (array, registry) { | |
const flags = [] | |
const other = [] | |
array.forEach((item, index) => { | |
if (item.startsWith("--")) { | |
flags.push(item.slice(2)) | |
} else if (item.startsWith("-")) { | |
if (registry[item.slice(1)]) { |