From ba5a8d89bbf049e4afc41543bcc072cccdb02669 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Feb 2021 09:33:05 +0100 Subject: Update server dependencies --- scripts/plugin/uninstall.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/plugin/uninstall.ts') diff --git a/scripts/plugin/uninstall.ts b/scripts/plugin/uninstall.ts index c56f18466..8710b1750 100755 --- a/scripts/plugin/uninstall.ts +++ b/scripts/plugin/uninstall.ts @@ -9,7 +9,9 @@ program .option('-n, --npm-name [npmName]', 'Package name to install') .parse(process.argv) -if (!program['npmName']) { +const options = program.opts() + +if (!options.npmName) { console.error('You need to specify the plugin name.') process.exit(-1) } @@ -25,6 +27,6 @@ async function run () { await initDatabaseModels(true) - const toUninstall = program['npmName'] + const toUninstall = options.npmName await PluginManager.Instance.uninstall(toUninstall) } -- cgit v1.2.3