diff --git a/cli/wallet/wallet.go b/cli/wallet/wallet.go index ad7ee8489..ece110e69 100644 --- a/cli/wallet/wallet.go +++ b/cli/wallet/wallet.go @@ -173,7 +173,7 @@ func NewCommands() []cli.Command { { Name: "import-multisig", Usage: "import multisig contract", - UsageText: "import-multisig --wallet --wif --min " + + UsageText: "import-multisig --wallet --wif [--name ] --min " + " [ [ [...]]]", Action: importMultisig, Flags: []cli.Flag{ @@ -410,6 +410,9 @@ func importMultisig(ctx *cli.Context) error { return cli.NewExitError(err, 1) } + if acc.Label == "" { + acc.Label = ctx.String("name") + } if err := addAccountAndSave(wall, acc); err != nil { return cli.NewExitError(err, 1) }