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

@@ -219,7 +219,7 @@ var tradeCommand = &cli.Command{
func findMissingSavedTradeIntervals(c *cli.Context) error {
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, "findmissingsavedtradeintervals")
return cli.ShowSubcommandHelp(c)
}
var exchangeName string
@@ -305,7 +305,7 @@ func findMissingSavedTradeIntervals(c *cli.Context) error {
func setExchangeTradeProcessing(c *cli.Context) error {
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, "setexchangetradeprocessing")
return cli.ShowSubcommandHelp(c)
}
var exchangeName string
@@ -348,7 +348,7 @@ func setExchangeTradeProcessing(c *cli.Context) error {
func getSavedTrades(c *cli.Context) error {
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, "getsaved")
return cli.ShowSubcommandHelp(c)
}
var exchangeName string
@@ -438,7 +438,7 @@ func getSavedTrades(c *cli.Context) error {
func getRecentTrades(c *cli.Context) error {
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, "getrecent")
return cli.ShowSubcommandHelp(c)
}
var exchangeName string
@@ -500,7 +500,7 @@ func getRecentTrades(c *cli.Context) error {
func getHistoricTrades(c *cli.Context) error {
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, "gethistoric")
return cli.ShowSubcommandHelp(c)
}
var exchangeName string
@@ -613,7 +613,7 @@ func getHistoricTrades(c *cli.Context) error {
func convertSavedTradesToCandles(c *cli.Context) error {
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowCommandHelp(c, "convertsavedtradestocandles")
return cli.ShowSubcommandHelp(c)
}
var exchangeName string