forked from TrueCloudLab/neoneo-go
cli: rename contract compile
--emitdebug to --debug
It is more intuitive and easier to type.
This commit is contained in:
parent
c71ad6a5db
commit
450263bcae
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ func NewCommands() []cli.Command {
|
||||||
Usage: "Print out additional information after a compiling",
|
Usage: "Print out additional information after a compiling",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "emitdebug",
|
Name: "debug, d",
|
||||||
Usage: "Emit debug info in a separate file",
|
Usage: "Emit debug info in a separate file",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -352,7 +352,7 @@ func contractCompile(ctx *cli.Context) error {
|
||||||
o := &compiler.Options{
|
o := &compiler.Options{
|
||||||
Outfile: ctx.String("out"),
|
Outfile: ctx.String("out"),
|
||||||
|
|
||||||
DebugInfo: ctx.String("emitdebug"),
|
DebugInfo: ctx.String("debug"),
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := compiler.CompileAndSave(src, o)
|
result, err := compiler.CompileAndSave(src, o)
|
||||||
|
|
Loading…
Reference in a new issue