Skip to content

Commit

Permalink
Fix arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
3846masa committed Oct 30, 2017
1 parent 06b4fd7 commit 1bf2cc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/template/install/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Install extends Command<InstallArguments> {
{
title: 'Install',
async task(ctx, _task) {
const [, ...packageNameList] = ctx._;
const packageNameList = ctx._.splice(2);
if (packageNameList.length === 0) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/template/uninstall/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Uninstall extends Command<UninstallArguments> {
{
title: 'Uninstall',
async task(ctx, _task) {
const [, ...packageNameList] = ctx._;
const packageNameList = ctx._.splice(2);
if (packageNameList.length === 0) {
return;
}
Expand Down

0 comments on commit 1bf2cc5

Please sign in to comment.