Skip to content

Commit

Permalink
Added Default logic to name cmd, and local option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
RichardLitt committed May 14, 2016
1 parent 7732411 commit fb03cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/commands/ipns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit fb03cb7

Please sign in to comment.