aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/deploy/cli.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-18 23:27:14 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-19 19:19:48 +0800
commita5d2cbfd6f9d7e86807bf2c4fb3a045722153e58 (patch)
treee0fb3f23d518b1d015259f9bca38e844f3761e4e /packages/contracts/deploy/cli.ts
parent04268d7f4b4a8a3496518a450bfcf01bb056a57e (diff)
downloaddexon-sol-tools-a5d2cbfd6f9d7e86807bf2c4fb3a045722153e58.tar
dexon-sol-tools-a5d2cbfd6f9d7e86807bf2c4fb3a045722153e58.tar.gz
dexon-sol-tools-a5d2cbfd6f9d7e86807bf2c4fb3a045722153e58.tar.bz2
dexon-sol-tools-a5d2cbfd6f9d7e86807bf2c4fb3a045722153e58.tar.lz
dexon-sol-tools-a5d2cbfd6f9d7e86807bf2c4fb3a045722153e58.tar.xz
dexon-sol-tools-a5d2cbfd6f9d7e86807bf2c4fb3a045722153e58.tar.zst
dexon-sol-tools-a5d2cbfd6f9d7e86807bf2c4fb3a045722153e58.zip
Install types for yargs
Diffstat (limited to 'packages/contracts/deploy/cli.ts')
-rw-r--r--packages/contracts/deploy/cli.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/contracts/deploy/cli.ts b/packages/contracts/deploy/cli.ts
index 423523e21..6587e46f1 100644
--- a/packages/contracts/deploy/cli.ts
+++ b/packages/contracts/deploy/cli.ts
@@ -23,12 +23,12 @@ const DEFAULT_GAS_PRICE = ((10 ** 9) * 2).toString();
* Compiles all contracts with options passed in through CLI.
* @param argv Instance of process.argv provided by yargs.
*/
-async function onCompileCommand(args: CliOptions): Promise<void> {
+async function onCompileCommand(argv: CliOptions): Promise<void> {
const opts: CompilerOptions = {
- contractsDir: args.contractsDir,
- networkId: args.networkId,
- optimizerEnabled: args.shouldOptimize ? 1 : 0,
- artifactsDir: args.artifactsDir,
+ contractsDir: argv.contractsDir,
+ networkId: argv.networkId,
+ optimizerEnabled: argv.shouldOptimize ? 1 : 0,
+ artifactsDir: argv.artifactsDir,
};
await commands.compileAsync(opts);
}
@@ -150,11 +150,11 @@ function deployCommandBuilder(yargsInstance: any) {
})
.command('compile',
'compile contracts',
- _.noop,
+ _.identity,
onCompileCommand)
.command('migrate',
'compile and deploy contracts using migration scripts',
- _.noop,
+ _.identity,
onMigrateCommand)
.command('deploy',
'deploy a single contract with provided arguments',