Added Default(false) to verbose for `active` and `dht` cmds
This required no change of the code. I also changed the message from `debug` to `extra`, which I think is closer to the truth. Part of #2484. License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
Richard Littauer committed
May 10, 2016 at 16:52 UTC
eaae8bf24c00747058340023cea133558c193dcc
2 files changed
+6
-6
core/commands/active.go
+1
-1
@@ -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.").Default(false),
26
},
27
Subcommands: map[string]*cmds.Command{
28
"clear": clearInactiveCmd,
core/commands/dht.go
+5
-5
@@ -43,7 +43,7 @@ var queryDhtCmd = &cmds.Command{
43
cmds.StringArg("peerID", true, true, "The peerID to run the query against."),
44
},
45
Options: []cmds.Option{
46
- cmds.BoolOption("verbose", "v", "Write debug information."),
46
+ cmds.BoolOption("verbose", "v", "Write extra information.").Default(false),
47
},
48
Run: func(req cmds.Request, res cmds.Response) {
49
n, err := req.InvocContext().GetNode()
@@ -135,7 +135,7 @@ var findProvidersDhtCmd = &cmds.Command{
135
cmds.StringArg("key", true, true, "The key to find providers for."),
136
},
137
Options: []cmds.Option{
138
- cmds.BoolOption("verbose", "v", "Write debug information."),
138
+ cmds.BoolOption("verbose", "v", "Write extra information.").Default(false),
139
},
140
Run: func(req cmds.Request, res cmds.Response) {
141
n, err := req.InvocContext().GetNode()
@@ -236,7 +236,7 @@ var findPeerDhtCmd = &cmds.Command{
236
cmds.StringArg("peerID", true, true, "The ID of the peer to search for."),
237
},
238
Options: []cmds.Option{
239
- cmds.BoolOption("verbose", "v", "Write debug information."),
239
+ cmds.BoolOption("verbose", "v", "Write extra information.").Default(false),
240
},
241
Run: func(req cmds.Request, res cmds.Response) {
242
n, err := req.InvocContext().GetNode()
@@ -339,7 +339,7 @@ There may be several different values for a given key stored in the DHT; in this
339
cmds.StringArg("key", true, true, "The key to find a value for."),
340
},
341
Options: []cmds.Option{
342
- cmds.BoolOption("verbose", "v", "Write debug information."),
342
+ cmds.BoolOption("verbose", "v", "Write extra information.").Default(false),
343
},
344
Run: func(req cmds.Request, res cmds.Response) {
345
n, err := req.InvocContext().GetNode()
@@ -451,7 +451,7 @@ NOTE: A value may not exceed 2048 bytes.
451
cmds.StringArg("value", true, false, "The value to store.").EnableStdin(),
452
},
453
Options: []cmds.Option{
454
- cmds.BoolOption("verbose", "v", "Write debug information."),
454
+ cmds.BoolOption("verbose", "v", "Write extra information.").Default(false),
455
},
456
Run: func(req cmds.Request, res cmds.Response) {
457
n, err := req.InvocContext().GetNode()