@cryptotaxi247 / kubo / commits / f6a1be68a

pin ls: Remove count option, add Default to quiet

'count' is never referenced in the code, and adds nothing when run with `ipfs pin ls` currently. I have removed it; add it again when there is actual logic to reflect. Also, added a Default(false) to quiet. Part of #2484 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>

Richard Littauer committed May 12, 2016 at 11:41 UTC f6a1be68ab580e52d2d04e424aa147fb1a37daa6
1 file changed +1 -2
core/commands/pin.go
+1 -2
@@ -188,8 +188,7 @@ Example:
188 },
189 Options: []cmds.Option{
190 cmds.StringOption("type", "t", "The type of pinned keys to list. Can be \"direct\", \"indirect\", \"recursive\", or \"all\".").Default("all"),
191 - cmds.BoolOption("count", "n", "Show refcount when listing indirect pins."),
192 - cmds.BoolOption("quiet", "q", "Write just hashes of objects."),
191 + cmds.BoolOption("quiet", "q", "Write just hashes of objects.").Default(false),
192 },
193 Run: func(req cmds.Request, res cmds.Response) {
194 n, err := req.InvocContext().GetNode()