1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

key cmd: fix force option handling in rename

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
Łukasz Magiera
2018-08-07 14:00:07 +02:00
parent 3a68d6395a
commit 9c6959cf2c

View File

@ -171,7 +171,7 @@ var keyRenameCmd = &cmds.Command{
name := req.Arguments[0] name := req.Arguments[0]
newName := req.Arguments[1] newName := req.Arguments[1]
force := req.Options["force"].(bool) force, _ := req.Options["force"].(bool)
key, overwritten, err := api.Key().Rename(req.Context, name, newName, options.Key.Force(force)) key, overwritten, err := api.Key().Rename(req.Context, name, newName, options.Key.Force(force))
if err != nil { if err != nil {