From eaae8bf24c00747058340023cea133558c193dcc Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Tue, 10 May 2016 16:52:24 -0400 Subject: [PATCH] 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 --- core/commands/active.go | 2 +- core/commands/dht.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/commands/active.go b/core/commands/active.go index 8ff4ab95b..6d90a4f40 100644 --- a/core/commands/active.go +++ b/core/commands/active.go @@ -22,7 +22,7 @@ Lists running and recently run commands. res.SetOutput(req.InvocContext().ReqLog.Report()) }, Options: []cmds.Option{ - cmds.BoolOption("v", "verbose", "Print more verbose output."), + cmds.BoolOption("v", "verbose", "Print more verbose output.").Default(false), }, Subcommands: map[string]*cmds.Command{ "clear": clearInactiveCmd, diff --git a/core/commands/dht.go b/core/commands/dht.go index ff309abba..7d7a596ef 100644 --- a/core/commands/dht.go +++ b/core/commands/dht.go @@ -43,7 +43,7 @@ var queryDhtCmd = &cmds.Command{ cmds.StringArg("peerID", true, true, "The peerID to run the query against."), }, Options: []cmds.Option{ - cmds.BoolOption("verbose", "v", "Write debug information."), + cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), }, Run: func(req cmds.Request, res cmds.Response) { n, err := req.InvocContext().GetNode() @@ -135,7 +135,7 @@ var findProvidersDhtCmd = &cmds.Command{ cmds.StringArg("key", true, true, "The key to find providers for."), }, Options: []cmds.Option{ - cmds.BoolOption("verbose", "v", "Write debug information."), + cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), }, Run: func(req cmds.Request, res cmds.Response) { n, err := req.InvocContext().GetNode() @@ -236,7 +236,7 @@ var findPeerDhtCmd = &cmds.Command{ cmds.StringArg("peerID", true, true, "The ID of the peer to search for."), }, Options: []cmds.Option{ - cmds.BoolOption("verbose", "v", "Write debug information."), + cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), }, Run: func(req cmds.Request, res cmds.Response) { 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 cmds.StringArg("key", true, true, "The key to find a value for."), }, Options: []cmds.Option{ - cmds.BoolOption("verbose", "v", "Write debug information."), + cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), }, Run: func(req cmds.Request, res cmds.Response) { n, err := req.InvocContext().GetNode() @@ -451,7 +451,7 @@ NOTE: A value may not exceed 2048 bytes. cmds.StringArg("value", true, false, "The value to store.").EnableStdin(), }, Options: []cmds.Option{ - cmds.BoolOption("verbose", "v", "Write debug information."), + cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), }, Run: func(req cmds.Request, res cmds.Response) { n, err := req.InvocContext().GetNode()