fix(pockethost): -e param default

This commit is contained in:
Ben Allfree 2024-06-29 14:12:53 -07:00
parent 7931204f19
commit 52b70cbe76
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
'pockethost': patch
---
Fixed bug where --extra-plugins was not defaulting to '' correctly

View File

@ -36,11 +36,13 @@ export const main = async () => {
const argv = minimist<{ e: string }>(process.argv.slice(2), {
alias: { e: 'extra-plugins' },
default: { e: '' },
})
const extraPlugins = argv.e
.split(/,/)
.map((s) => s.trim())
.filter((v) => !!v)
await loadPlugins([pockethost, ...uniq(PH_PLUGINS()), ...extraPlugins])
program