Skip to content

Commit a998dbf

Browse files
committedJan 21, 2016
Fixed up docs for bitswap
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
1 parent 89a6f01 commit a998dbf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎core/commands/bitswap.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
var BitswapCmd = &cmds.Command{
1818
Helptext: cmds.HelpText{
19-
Tagline: "A set of commands to manipulate the bitswap agent",
19+
Tagline: "A set of commands to manipulate the bitswap agent.",
2020
ShortDescription: ``,
2121
},
2222
Subcommands: map[string]*cmds.Command{
@@ -28,10 +28,10 @@ var BitswapCmd = &cmds.Command{
2828

2929
var unwantCmd = &cmds.Command{
3030
Helptext: cmds.HelpText{
31-
Tagline: "Remove a given block from your wantlist",
31+
Tagline: "Remove a given block from your wantlist.",
3232
},
3333
Arguments: []cmds.Argument{
34-
cmds.StringArg("key", true, true, "key to remove from your wantlist").EnableStdin(),
34+
cmds.StringArg("key", true, true, "Key to remove from your wantlist.").EnableStdin(),
3535
},
3636
Run: func(req cmds.Request, res cmds.Response) {
3737
nd, err := req.InvocContext().GetNode()
@@ -55,7 +55,7 @@ var unwantCmd = &cmds.Command{
5555
for _, arg := range req.Arguments() {
5656
dec := key.B58KeyDecode(arg)
5757
if dec == "" {
58-
res.SetError(fmt.Errorf("incorrectly formatted key: %s", arg), cmds.ErrNormal)
58+
res.SetError(fmt.Errorf("Incorrectly formatted key: %s", arg), cmds.ErrNormal)
5959
return
6060
}
6161

@@ -68,12 +68,12 @@ var unwantCmd = &cmds.Command{
6868

6969
var showWantlistCmd = &cmds.Command{
7070
Helptext: cmds.HelpText{
71-
Tagline: "Show blocks currently on the wantlist",
71+
Tagline: "Show blocks currently on the wantlist.",
7272
ShortDescription: `
73-
Print out all blocks currently on the bitswap wantlist for the local peer`,
73+
Print out all blocks currently on the bitswap wantlist for the local peer.`,
7474
},
7575
Options: []cmds.Option{
76-
cmds.StringOption("peer", "p", "specify which peer to show wantlist for (default self)"),
76+
cmds.StringOption("peer", "p", "Specify which peer to show wantlist for. Default: self."),
7777
},
7878
Type: KeyList{},
7979
Run: func(req cmds.Request, res cmds.Response) {
@@ -117,7 +117,7 @@ Print out all blocks currently on the bitswap wantlist for the local peer`,
117117

118118
var bitswapStatCmd = &cmds.Command{
119119
Helptext: cmds.HelpText{
120-
Tagline: "show some diagnostic information on the bitswap agent",
120+
Tagline: "Show some diagnostic information on the bitswap agent.",
121121
ShortDescription: ``,
122122
},
123123
Type: bitswap.Stat{},

0 commit comments

Comments
 (0)
Please sign in to comment.