Files
memecoin-botV2/.pnpm-store/v10/files/c5/f12067cb865b9254fe0661deb1624597f3559afc5df4c7831e44df4f702a97f69a65ab6a595262414f9e664181e3ced183e6ea0144862bc3ca91ef0abc30ef

18 lines
385 B
Plaintext

const re = /^dotenv_config_(encoding|path|quiet|debug|override|DOTENV_KEY)=(.+)$/
module.exports = function optionMatcher (args) {
const options = args.reduce(function (acc, cur) {
const matches = cur.match(re)
if (matches) {
acc[matches[1]] = matches[2]
}
return acc
}, {})
if (!('quiet' in options)) {
options.quiet = 'true'
}
return options
}