提交 7c6ec818 作者: Steven Allen

commands: fix verbose flag for the active commands command

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 6240f57e
...@@ -14,7 +14,7 @@ import ( ...@@ -14,7 +14,7 @@ import (
) )
const ( const (
verboseOptionName = "v" verboseOptionName = "verbose"
) )
var ActiveReqsCmd = &cmds.Command{ var ActiveReqsCmd = &cmds.Command{
...@@ -29,7 +29,7 @@ Lists running and recently run commands. ...@@ -29,7 +29,7 @@ Lists running and recently run commands.
return cmds.EmitOnce(res, ctx.ReqLog.Report()) return cmds.EmitOnce(res, ctx.ReqLog.Report())
}, },
Options: []cmdkit.Option{ Options: []cmdkit.Option{
cmdkit.BoolOption("verbose", verboseOptionName, "Print extra information."), cmdkit.BoolOption(verboseOptionName, "v", "Print extra information."),
}, },
Subcommands: map[string]*cmds.Command{ Subcommands: map[string]*cmds.Command{
"clear": clearInactiveCmd, "clear": clearInactiveCmd,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论