提交 44b31363 作者: Jeromy Johnson

Merge pull request #2746 from ipfs/feature/one-verbose

Use one verbose flag description
...@@ -22,7 +22,7 @@ Lists running and recently run commands. ...@@ -22,7 +22,7 @@ Lists running and recently run commands.
res.SetOutput(req.InvocContext().ReqLog.Report()) res.SetOutput(req.InvocContext().ReqLog.Report())
}, },
Options: []cmds.Option{ Options: []cmds.Option{
cmds.BoolOption("v", "verbose", "Print more verbose output.").Default(false), cmds.BoolOption("v", "verbose", "Print extra information.").Default(false),
}, },
Subcommands: map[string]*cmds.Command{ Subcommands: map[string]*cmds.Command{
"clear": clearInactiveCmd, "clear": clearInactiveCmd,
......
...@@ -43,7 +43,7 @@ var queryDhtCmd = &cmds.Command{ ...@@ -43,7 +43,7 @@ var queryDhtCmd = &cmds.Command{
cmds.StringArg("peerID", true, true, "The peerID to run the query against."), cmds.StringArg("peerID", true, true, "The peerID to run the query against."),
}, },
Options: []cmds.Option{ Options: []cmds.Option{
cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), cmds.BoolOption("verbose", "v", "Print extra information.").Default(false),
}, },
Run: func(req cmds.Request, res cmds.Response) { Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode() n, err := req.InvocContext().GetNode()
...@@ -135,7 +135,7 @@ var findProvidersDhtCmd = &cmds.Command{ ...@@ -135,7 +135,7 @@ var findProvidersDhtCmd = &cmds.Command{
cmds.StringArg("key", true, true, "The key to find providers for."), cmds.StringArg("key", true, true, "The key to find providers for."),
}, },
Options: []cmds.Option{ Options: []cmds.Option{
cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), cmds.BoolOption("verbose", "v", "Print extra information.").Default(false),
}, },
Run: func(req cmds.Request, res cmds.Response) { Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode() n, err := req.InvocContext().GetNode()
...@@ -236,7 +236,7 @@ var findPeerDhtCmd = &cmds.Command{ ...@@ -236,7 +236,7 @@ var findPeerDhtCmd = &cmds.Command{
cmds.StringArg("peerID", true, true, "The ID of the peer to search for."), cmds.StringArg("peerID", true, true, "The ID of the peer to search for."),
}, },
Options: []cmds.Option{ Options: []cmds.Option{
cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), cmds.BoolOption("verbose", "v", "Print extra information.").Default(false),
}, },
Run: func(req cmds.Request, res cmds.Response) { Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode() 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,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."), cmds.StringArg("key", true, true, "The key to find a value for."),
}, },
Options: []cmds.Option{ Options: []cmds.Option{
cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), cmds.BoolOption("verbose", "v", "Print extra information.").Default(false),
}, },
Run: func(req cmds.Request, res cmds.Response) { Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode() n, err := req.InvocContext().GetNode()
...@@ -451,7 +451,7 @@ NOTE: A value may not exceed 2048 bytes. ...@@ -451,7 +451,7 @@ NOTE: A value may not exceed 2048 bytes.
cmds.StringArg("value", true, false, "The value to store.").EnableStdin(), cmds.StringArg("value", true, false, "The value to store.").EnableStdin(),
}, },
Options: []cmds.Option{ Options: []cmds.Option{
cmds.BoolOption("verbose", "v", "Write extra information.").Default(false), cmds.BoolOption("verbose", "v", "Print extra information.").Default(false),
}, },
Run: func(req cmds.Request, res cmds.Response) { Run: func(req cmds.Request, res cmds.Response) {
n, err := req.InvocContext().GetNode() n, err := req.InvocContext().GetNode()
......
...@@ -47,7 +47,7 @@ Example: ...@@ -47,7 +47,7 @@ Example:
cmds.StringArg("obj_b", true, false, "Object to diff."), cmds.StringArg("obj_b", true, false, "Object to diff."),
}, },
Options: []cmds.Option{ Options: []cmds.Option{
cmds.BoolOption("verbose", "v", "Produce verbose output."), cmds.BoolOption("verbose", "v", "Print extra information."),
}, },
Run: func(req cmds.Request, res cmds.Response) { Run: func(req cmds.Request, res cmds.Response) {
node, err := req.InvocContext().GetNode() node, err := req.InvocContext().GetNode()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论