mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-30 07:26:46 +00:00
cli: fix description output using new version of urfave/cli/v2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user