From 53c05ffd7440eb28ef47eb2a7f21c04a947a5e4d Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Tue, 19 Apr 2016 10:07:52 -0400 Subject: [PATCH] Added default values to refs License: MIT Signed-off-by: Richard Littauer --- core/commands/refs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/commands/refs.go b/core/commands/refs.go index 4c637fd22dc..1aa2ab7f924 100644 --- a/core/commands/refs.go +++ b/core/commands/refs.go @@ -50,9 +50,9 @@ Note: List all references recursively by using the flag '-r'. }, Options: []cmds.Option{ cmds.StringOption("format", "Emit edges with given format. Available tokens: ."), - cmds.BoolOption("edges", "e", "Emit edge format: ` -> `."), - cmds.BoolOption("unique", "u", "Omit duplicate refs from output."), - cmds.BoolOption("recursive", "r", "Recursively list links of child nodes."), + 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), }, Run: func(req cmds.Request, res cmds.Response) { ctx := req.Context()