From ba36b860dd6c7b8f9a214e0f09cdca830e044a4e Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Wed, 11 May 2016 17:12:59 -0400 Subject: [PATCH] Added Default logic to `ls` cmd See #2484 License: MIT Signed-off-by: Richard Littauer --- core/commands/ls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/ls.go b/core/commands/ls.go index 5aa3b6513..9604a1d2d 100644 --- a/core/commands/ls.go +++ b/core/commands/ls.go @@ -43,7 +43,7 @@ Displays the links an IPFS or IPNS object(s) contains, with the following format cmds.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to list links from.").EnableStdin(), }, Options: []cmds.Option{ - cmds.BoolOption("headers", "v", "Print table headers (Hash, Size, Name)."), + cmds.BoolOption("headers", "v", "Print table headers (Hash, Size, Name).").Default(false), }, Run: func(req cmds.Request, res cmds.Response) { node, err := req.InvocContext().GetNode()