cli: provide -m flag for manifest when deploying a contract
It's a bit easier to use. Previously we couldn't have it because it was used for '--mainnet', but we no longer specify the network, so it can be used for '--manifest'.
This commit is contained in:
parent
32e86785fa
commit
fac2a0d7e3
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ import (
|
||||||
var (
|
var (
|
||||||
errNoInput = errors.New("no input file was found, specify an input file with the '--in or -i' flag")
|
errNoInput = errors.New("no input file was found, specify an input file with the '--in or -i' flag")
|
||||||
errNoConfFile = errors.New("no config file was found, specify a config file with the '--config' or '-c' flag")
|
errNoConfFile = errors.New("no config file was found, specify a config file with the '--config' or '-c' flag")
|
||||||
errNoManifestFile = errors.New("no manifest file was found, specify a manifest file with the '--manifest' flag")
|
errNoManifestFile = errors.New("no manifest file was found, specify manifest file with '--manifest' or '-m' flag")
|
||||||
errNoMethod = errors.New("no method specified for function invocation command")
|
errNoMethod = errors.New("no method specified for function invocation command")
|
||||||
errNoWallet = errors.New("no wallet parameter found, specify it with the '--wallet or -w' flag")
|
errNoWallet = errors.New("no wallet parameter found, specify it with the '--wallet or -w' flag")
|
||||||
errNoScriptHash = errors.New("no smart contract hash was provided, specify one as the first argument")
|
errNoScriptHash = errors.New("no smart contract hash was provided, specify one as the first argument")
|
||||||
|
@ -107,7 +107,7 @@ func NewCommands() []cli.Command {
|
||||||
Usage: "Input file for the smart contract (*.nef)",
|
Usage: "Input file for the smart contract (*.nef)",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "manifest",
|
Name: "manifest, m",
|
||||||
Usage: "Manifest input file (*.manifest.json)",
|
Usage: "Manifest input file (*.manifest.json)",
|
||||||
},
|
},
|
||||||
walletFlag,
|
walletFlag,
|
||||||
|
|
Loading…
Reference in a new issue