@cryptotaxi247 / kubo / commits / fb03cb783

Added Default logic to `name` cmd, and local option

Added Default logic per #2484, and also added the local option back in, because it exists in the code and should be shown as helptext, at least. License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>

Richard Littauer committed May 11, 2016 at 17:10 UTC fb03cb783beaa2b37ca86ff51289e2e06e31cacf
1 file changed +2 -2
core/commands/ipns.go
+2 -2
@@ -49,8 +49,8 @@ Resolve the value of a reference:
49 cmds.StringArg("name", false, false, "The IPNS name to resolve. Defaults to your node's peerID.").EnableStdin(),
50 },
51 Options: []cmds.Option{
52 - cmds.BoolOption("recursive", "r", "Resolve until the result is not an IPNS name."),
53 - cmds.BoolOption("nocache", "n", "Do not used cached entries."),
52 + cmds.BoolOption("recursive", "r", "Resolve until the result is not an IPNS name.").Default(false),
53 + cmds.BoolOption("nocache", "n", "Do not used cached entries.").Default(false),
54 },
55 Run: func(req cmds.Request, res cmds.Response) {
56