Rename args to constructor-args

This commit is contained in:
Leonid Logvinov
2018-05-07 13:40:53 +02:00
parent 95df4433dc
commit 3d51bc1ada

View File

@@ -59,7 +59,7 @@ async function onDeployCommandAsync(argv: CliOptions): Promise<void> {
networkId,
defaults,
};
const deployerArgsString = argv.args as string;
const deployerArgsString = argv.constructorArgs as string;
const deployerArgs = deployerArgsString.split(SEPARATOR);
await commands.deployAsync(argv.contract as string, deployerArgs, deployerOpts);
}
@@ -78,7 +78,7 @@ function deployCommandBuilder(yargsInstance: any) {
type: 'string',
description: 'name of contract to deploy, excluding .sol extension',
})
.option('args', {
.option('constructor-args', {
type: 'string',
description: 'comma separated list of constructor args to deploy contract with',
})