From fb03cb783beaa2b37ca86ff51289e2e06e31cacf Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Wed, 11 May 2016 17:10:31 -0400 Subject: [PATCH] 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 --- core/commands/ipns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/commands/ipns.go b/core/commands/ipns.go index 9a963b3cc..5c8db47fd 100644 --- a/core/commands/ipns.go +++ b/core/commands/ipns.go @@ -49,8 +49,8 @@ Resolve the value of a reference: cmds.StringArg("name", false, false, "The IPNS name to resolve. Defaults to your node's peerID.").EnableStdin(), }, Options: []cmds.Option{ - cmds.BoolOption("recursive", "r", "Resolve until the result is not an IPNS name."), - cmds.BoolOption("nocache", "n", "Do not used cached entries."), + cmds.BoolOption("recursive", "r", "Resolve until the result is not an IPNS name.").Default(false), + cmds.BoolOption("nocache", "n", "Do not used cached entries.").Default(false), }, Run: func(req cmds.Request, res cmds.Response) {