aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src/cli.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-15 23:29:55 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-21 22:07:51 +0800
commit3c36135d6c9c4b4deb1985bd71ba6f4002d16d0e (patch)
tree3bd45d0b07ac2526a2f9a972d79e1b9005f69e9c /packages/deployer/src/cli.ts
parent02ede26893d5801c827f68d4ffb24c216b873a09 (diff)
downloaddexon-sol-tools-3c36135d6c9c4b4deb1985bd71ba6f4002d16d0e.tar
dexon-sol-tools-3c36135d6c9c4b4deb1985bd71ba6f4002d16d0e.tar.gz
dexon-sol-tools-3c36135d6c9c4b4deb1985bd71ba6f4002d16d0e.tar.bz2
dexon-sol-tools-3c36135d6c9c4b4deb1985bd71ba6f4002d16d0e.tar.lz
dexon-sol-tools-3c36135d6c9c4b4deb1985bd71ba6f4002d16d0e.tar.xz
dexon-sol-tools-3c36135d6c9c4b4deb1985bd71ba6f4002d16d0e.tar.zst
dexon-sol-tools-3c36135d6c9c4b4deb1985bd71ba6f4002d16d0e.zip
Stop printing help on error
Diffstat (limited to 'packages/deployer/src/cli.ts')
-rw-r--r--packages/deployer/src/cli.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/deployer/src/cli.ts b/packages/deployer/src/cli.ts
index b131a96d8..176eaf973 100644
--- a/packages/deployer/src/cli.ts
+++ b/packages/deployer/src/cli.ts
@@ -10,6 +10,7 @@ import * as yargs from 'yargs';
import { commands } from './commands';
import { constants } from './utils/constants';
+import { consoleReporter } from './utils/error_reporter';
import { CliOptions, CompilerOptions, DeployerOptions } from './utils/types';
const DEFAULT_OPTIMIZER_ENABLED = false;
@@ -142,12 +143,12 @@ function deployCommandBuilder(yargsInstance: any) {
default: DEFAULT_CONTRACTS_LIST,
description: 'comma separated list of contracts to compile',
})
- .command('compile', 'compile contracts', identityCommandBuilder, onCompileCommandAsync)
+ .command('compile', 'compile contracts', identityCommandBuilder, consoleReporter(onCompileCommandAsync))
.command(
'deploy',
'deploy a single contract with provided arguments',
deployCommandBuilder,
- onDeployCommandAsync,
+ consoleReporter(onDeployCommandAsync),
)
.help().argv;
})();