mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 15:10:59 +00:00
cli: fix description output using new version of urfave/cli/v2
This commit is contained in:
@@ -125,7 +125,7 @@ var exchangePairManagerCommand = &cli.Command{
|
||||
},
|
||||
{
|
||||
Name: "disableall",
|
||||
Usage: "dissable all pairs",
|
||||
Usage: "disable all pairs",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "exchange",
|
||||
@@ -162,11 +162,7 @@ var exchangePairManagerCommand = &cli.Command{
|
||||
func enableDisableExchangePair(c *cli.Context) error {
|
||||
enable := c.Bool("enable")
|
||||
if c.NArg() == 0 && c.NumFlags() == 0 {
|
||||
if enable {
|
||||
return cli.ShowCommandHelp(c, "enable")
|
||||
}
|
||||
|
||||
return cli.ShowCommandHelp(c, "disable")
|
||||
return cli.ShowSubcommandHelp(c)
|
||||
}
|
||||
|
||||
var exchange string
|
||||
@@ -288,10 +284,7 @@ func getExchangePairs(c *cli.Context) error {
|
||||
func enableDisableExchangeAsset(c *cli.Context) error {
|
||||
enable := c.Bool("enable")
|
||||
if c.NArg() == 0 && c.NumFlags() == 0 {
|
||||
if enable {
|
||||
return cli.ShowCommandHelp(c, "enableasset")
|
||||
}
|
||||
return cli.ShowCommandHelp(c, "disableasset")
|
||||
return cli.ShowSubcommandHelp(c)
|
||||
}
|
||||
|
||||
var exchange string
|
||||
@@ -338,10 +331,7 @@ func enableDisableExchangeAsset(c *cli.Context) error {
|
||||
func enableDisableAllExchangePairs(c *cli.Context) error {
|
||||
enable := c.Bool("enable")
|
||||
if c.NArg() == 0 && c.NumFlags() == 0 {
|
||||
if enable {
|
||||
return cli.ShowCommandHelp(c, "enableall")
|
||||
}
|
||||
return cli.ShowCommandHelp(c, "disableall")
|
||||
return cli.ShowSubcommandHelp(c)
|
||||
}
|
||||
|
||||
var exchange string
|
||||
|
||||
Reference in New Issue
Block a user