@cryptotaxi247 / kubo / commits / 4b4c81a37

Fixed up comments for `diag cmds`

License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>

Richard Littauer committed Apr 26, 2016 at 19:31 UTC 4b4c81a37d65e7364c2addbe998e95cbd1016093
1 file changed +5 -5
core/commands/active.go
+5 -5
@@ -13,7 +13,7 @@ import (
13
14 var ActiveReqsCmd = &cmds.Command{
15 Helptext: cmds.HelpText{
16 - Tagline: "List commands run on this ipfs node",
16 + Tagline: "List commands run on this ipfs node.",
17 ShortDescription: `
18 Lists running and recently run commands.
19 `,
@@ -22,7 +22,7 @@ Lists running and recently run commands.
22 res.SetOutput(req.InvocContext().ReqLog.Report())
23 },
24 Options: []cmds.Option{
25 - cmds.BoolOption("v", "verbose", "print more verbose output"),
25 + cmds.BoolOption("v", "verbose", "Print more verbose output."),
26 },
27 Subcommands: map[string]*cmds.Command{
28 "clear": clearInactiveCmd,
@@ -87,7 +87,7 @@ Lists running and recently run commands.
87
88 var clearInactiveCmd = &cmds.Command{
89 Helptext: cmds.HelpText{
90 - Tagline: "Clear inactive requests from the log",
90 + Tagline: "Clear inactive requests from the log.",
91 },
92 Run: func(req cmds.Request, res cmds.Response) {
93 req.InvocContext().ReqLog.ClearInactive()
@@ -96,10 +96,10 @@ var clearInactiveCmd = &cmds.Command{
96
97 var setRequestClearCmd = &cmds.Command{
98 Helptext: cmds.HelpText{
99 - Tagline: "Set how long to keep inactive requests in the log",
99 + Tagline: "Set how long to keep inactive requests in the log.",
100 },
101 Arguments: []cmds.Argument{
102 - cmds.StringArg("time", true, false, "time to keep inactive requests in log"),
102 + cmds.StringArg("time", true, false, "Time to keep inactive requests in log."),
103 },
104 Run: func(req cmds.Request, res cmds.Response) {
105 tval, err := time.ParseDuration(req.Arguments()[0])