diff --git a/cmd/ipfs/name.go b/cmd/ipfs/name.go
index a2ef78e50673504cdfffeb25659a52e55a9326d3..7021fe6123ea1156a6fa7ae3dd9c5613ef690478 100644
--- a/cmd/ipfs/name.go
+++ b/cmd/ipfs/name.go
@@ -43,7 +43,7 @@ Resolve te value of another name:
   QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy
 
 `,
-	Run:  addCmd,
+	Run:  nameCmd,
 	Flag: *flag.NewFlagSet("ipfs-name", flag.ExitOnError),
 	Subcommands: []*commander.Command{
 		cmdIpfsPub,