From 450263bcae97b9b50fb8a84e4cb30af2cdd0ed31 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 8 Apr 2020 13:11:44 +0300 Subject: [PATCH] cli: rename `contract compile` --emitdebug to --debug It is more intuitive and easier to type. --- cli/smartcontract/smart_contract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index df273c39e..e1445b867 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -93,7 +93,7 @@ func NewCommands() []cli.Command { Usage: "Print out additional information after a compiling", }, cli.StringFlag{ - Name: "emitdebug", + Name: "debug, d", Usage: "Emit debug info in a separate file", }, }, @@ -352,7 +352,7 @@ func contractCompile(ctx *cli.Context) error { o := &compiler.Options{ Outfile: ctx.String("out"), - DebugInfo: ctx.String("emitdebug"), + DebugInfo: ctx.String("debug"), } result, err := compiler.CompileAndSave(src, o)