@cryptotaxi247 / kubo / commits / 90421f556

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 <richard.littauer@gmail.com>

Richard Littauer committed May 12, 2016 at 11:58 UTC 90421f556f2f28205b5eebf91fc007687a9c3afc
1 file changed +1 -1
core/commands/refs.go
+1 -1
@@ -50,7 +50,7 @@ NOTE: List all references recursively by using the flag '-r'.
50 cmds.StringArg("ipfs-path", true, true, "Path to the object(s) to list refs from.").EnableStdin(),
51 },
52 Options: []cmds.Option{
53 - cmds.StringOption("format", "Emit edges with given format. Available tokens: <src> <dst> <linkname>."),
53 + cmds.StringOption("format", "Emit edges with given format. Available tokens: <src> <dst> <linkname>.").Default("<dst>"),
54 cmds.BoolOption("edges", "e", "Emit edge format: `<from> -> <to>`.").Default(false),
55 cmds.BoolOption("unique", "u", "Omit duplicate refs from output.").Default(false),
56 cmds.BoolOption("recursive", "r", "Recursively list links of child nodes.").Default(false),