cli: fix description output using new version of urfave/cli/v2

This commit is contained in:
Scott
2022-12-23 11:49:07 +11:00
committed by GitHub
parent d739c66a8a
commit f307152cbf
7 changed files with 66 additions and 76 deletions

View File

@@ -47,7 +47,7 @@ func executeStrategyFromFile(c *cli.Context) error {
defer closeConn(conn, cancel)
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, c.Command.Name)
return cli.ShowSubcommandHelp(c)
}
var path string
@@ -132,7 +132,7 @@ func startRun(c *cli.Context) error {
defer closeConn(conn, cancel)
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, c.Command.Name)
return cli.ShowSubcommandHelp(c)
}
var id string
@@ -206,7 +206,7 @@ func stopRun(c *cli.Context) error {
defer closeConn(conn, cancel)
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, c.Command.Name)
return cli.ShowSubcommandHelp(c)
}
var id string
@@ -280,7 +280,7 @@ func clearRun(c *cli.Context) error {
defer closeConn(conn, cancel)
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, c.Command.Name)
return cli.ShowSubcommandHelp(c)
}
var id string