From e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 19 Dec 2017 12:18:50 +0100 Subject: Introduce an identityCommandBuilder --- packages/contracts/deploy/cli.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/contracts') diff --git a/packages/contracts/deploy/cli.ts b/packages/contracts/deploy/cli.ts index 6587e46f1..b02849826 100644 --- a/packages/contracts/deploy/cli.ts +++ b/packages/contracts/deploy/cli.ts @@ -113,6 +113,7 @@ function deployCommandBuilder(yargsInstance: any) { } (() => { + const identityCommandBuilder = _.identity; return yargs .option('contracts-dir', { type: 'string', @@ -150,11 +151,11 @@ function deployCommandBuilder(yargsInstance: any) { }) .command('compile', 'compile contracts', - _.identity, + identityCommandBuilder, onCompileCommand) .command('migrate', 'compile and deploy contracts using migration scripts', - _.identity, + identityCommandBuilder, onMigrateCommand) .command('deploy', 'deploy a single contract with provided arguments', -- cgit