From 1bf2cc51f611d73dd93d2295476257c9743d444a Mon Sep 17 00:00:00 2001 From: 3846masa <3846masahiro+git@gmail.com> Date: Mon, 30 Oct 2017 23:30:31 +0900 Subject: [PATCH] Fix arguments --- src/commands/template/install/index.ts | 2 +- src/commands/template/uninstall/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/template/install/index.ts b/src/commands/template/install/index.ts index d5f3cfa..af1fbf4 100644 --- a/src/commands/template/install/index.ts +++ b/src/commands/template/install/index.ts @@ -19,7 +19,7 @@ class Install extends Command { { title: 'Install', async task(ctx, _task) { - const [, ...packageNameList] = ctx._; + const packageNameList = ctx._.splice(2); if (packageNameList.length === 0) { return; } diff --git a/src/commands/template/uninstall/index.ts b/src/commands/template/uninstall/index.ts index 69ab4f3..e96e5ac 100644 --- a/src/commands/template/uninstall/index.ts +++ b/src/commands/template/uninstall/index.ts @@ -18,7 +18,7 @@ class Uninstall extends Command { { title: 'Uninstall', async task(ctx, _task) { - const [, ...packageNameList] = ctx._; + const packageNameList = ctx._.splice(2); if (packageNameList.length === 0) { return; }