Added Default logic to `ls` cmd
See #2484 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
Richard Littauer committed
May 11, 2016 at 17:12 UTC
ba36b860dd6c7b8f9a214e0f09cdca830e044a4e
1 file changed
+1
-1
core/commands/ls.go
+1
-1
@@ -43,7 +43,7 @@ Displays the links an IPFS or IPNS object(s) contains, with the following format
43
cmds.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to list links from.").EnableStdin(),
44
},
45
Options: []cmds.Option{
46
- cmds.BoolOption("headers", "v", "Print table headers (Hash, Size, Name)."),
46
+ cmds.BoolOption("headers", "v", "Print table headers (Hash, Size, Name).").Default(false),
47
},
48
Run: func(req cmds.Request, res cmds.Response) {
49
node, err := req.InvocContext().GetNode()