mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
cli: require contract config file for bindings generation
It's an error if config file isn't provided and bindings config needs to be generated. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
d493afc941
commit
3dbb733324
1 changed files with 3 additions and 2 deletions
|
@ -400,7 +400,8 @@ func contractCompile(ctx *cli.Context) error {
|
|||
manifestFile := ctx.String("manifest")
|
||||
confFile := ctx.String("config")
|
||||
debugFile := ctx.String("debug")
|
||||
if len(confFile) == 0 && (len(manifestFile) != 0 || len(debugFile) != 0) {
|
||||
bindings := ctx.String("bindings")
|
||||
if len(confFile) == 0 && (len(manifestFile) != 0 || len(debugFile) != 0 || len(bindings) != 0) {
|
||||
return cli.NewExitError(errNoConfFile, 1)
|
||||
}
|
||||
|
||||
|
@ -409,7 +410,7 @@ func contractCompile(ctx *cli.Context) error {
|
|||
|
||||
DebugInfo: debugFile,
|
||||
ManifestFile: manifestFile,
|
||||
BindingsFile: ctx.String("bindings"),
|
||||
BindingsFile: bindings,
|
||||
|
||||
NoStandardCheck: ctx.Bool("no-standards"),
|
||||
NoEventsCheck: ctx.Bool("no-events"),
|
||||
|
|
Loading…
Reference in a new issue