From 90421f556f2f28205b5eebf91fc007687a9c3afc Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Thu, 12 May 2016 11:58:35 -0400 Subject: [PATCH] Added Default logic to refs Not sure about the switch statement. There may be a more elegant solution. Part of #2484 License: MIT Signed-off-by: Richard Littauer --- core/commands/refs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/refs.go b/core/commands/refs.go index 4d15ed8762c..106ee4fe940 100644 --- a/core/commands/refs.go +++ b/core/commands/refs.go @@ -50,7 +50,7 @@ NOTE: List all references recursively by using the flag '-r'. cmds.StringArg("ipfs-path", true, true, "Path to the object(s) to list refs from.").EnableStdin(), }, Options: []cmds.Option{ - cmds.StringOption("format", "Emit edges with given format. Available tokens: ."), + cmds.StringOption("format", "Emit edges with given format. Available tokens: .").Default(""), cmds.BoolOption("edges", "e", "Emit edge format: ` -> `.").Default(false), cmds.BoolOption("unique", "u", "Omit duplicate refs from output.").Default(false), cmds.BoolOption("recursive", "r", "Recursively list links of child nodes.").Default(false),