diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-19 19:18:50 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-19 19:19:48 +0800 |
commit | e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416 (patch) | |
tree | 585b8628938af4634c10dbb4dd1f884910adbf99 | |
parent | 786ea527380fe8f2f6461628c9dde90d61e3bc85 (diff) | |
download | dexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.tar dexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.tar.gz dexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.tar.bz2 dexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.tar.lz dexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.tar.xz dexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.tar.zst dexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.zip |
Introduce an identityCommandBuilder
-rw-r--r-- | packages/contracts/deploy/cli.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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', |