mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
cmd: fix persistent flags method call
This commit is contained in:
parent
37da9dee0e
commit
02fa4d822a
|
@ -51,7 +51,7 @@ var RootCmd = &cobra.Command{
|
|||
env = "development"
|
||||
}
|
||||
|
||||
logFormatter, err := cmd.PersistentFlags().GetString("log-formatter")
|
||||
logFormatter, err := cmd.Flags().GetString("log-formatter")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user