1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

Merge pull request #2670 from ipfs/feature/add-default-to-ls-headers

Added Default logic to `ls` cmd
This commit is contained in:
Jeromy Johnson
2016-05-13 14:50:50 -07:00

View File

@ -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(), cmds.StringArg("ipfs-path", true, true, "The path to the IPFS object(s) to list links from.").EnableStdin(),
}, },
Options: []cmds.Option{ 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) { Run: func(req cmds.Request, res cmds.Response) {
node, err := req.InvocContext().GetNode() node, err := req.InvocContext().GetNode()