@cryptotaxi247 / kubo / commits / 53c05ffd7

Added default values to refs

License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>

Richard Littauer committed Apr 19, 2016 at 10:07 UTC 53c05ffd7440eb28ef47eb2a7f21c04a947a5e4d
1 file changed +3 -3
core/commands/refs.go
+3 -3
@@ -50,9 +50,9 @@ Note: List all references recursively by using the flag '-r'.
50 },
51 Options: []cmds.Option{
52 cmds.StringOption("format", "Emit edges with given format. Available tokens: <src> <dst> <linkname>."),
53 - cmds.BoolOption("edges", "e", "Emit edge format: `<from> -> <to>`."),
54 - cmds.BoolOption("unique", "u", "Omit duplicate refs from output."),
55 - cmds.BoolOption("recursive", "r", "Recursively list links of child nodes."),
53 + cmds.BoolOption("edges", "e", "Emit edge format: `<from> -> <to>`.").Default(false),
54 + cmds.BoolOption("unique", "u", "Omit duplicate refs from output.").Default(false),
55 + cmds.BoolOption("recursive", "r", "Recursively list links of child nodes.").Default(false),
56 },
57 Run: func(req cmds.Request, res cmds.Response) {
58 ctx := req.Context()