consistent config param for all sub-commands

This commit is contained in:
Lan Phan 2024-03-22 14:35:06 +07:00
parent 693b641612
commit 29874db5b8
2 changed files with 0 additions and 2 deletions

View File

@ -43,7 +43,6 @@ func init() {
BacktestCmd.Flags().Bool("base-asset-baseline", false, "use base asset performance as the competitive baseline performance") BacktestCmd.Flags().Bool("base-asset-baseline", false, "use base asset performance as the competitive baseline performance")
BacktestCmd.Flags().CountP("verbose", "v", "verbose level") BacktestCmd.Flags().CountP("verbose", "v", "verbose level")
BacktestCmd.Flags().String("config", "bbgo.yaml", "strategy config file")
BacktestCmd.Flags().Bool("force", false, "force execution without confirm") BacktestCmd.Flags().Bool("force", false, "force execution without confirm")
BacktestCmd.Flags().String("output", "", "the report output directory") BacktestCmd.Flags().String("output", "", "the report output directory")
BacktestCmd.Flags().Bool("subdir", false, "generate report in the sub-directory of the output directory") BacktestCmd.Flags().Bool("subdir", false, "generate report in the sub-directory of the output directory")

View File

@ -11,7 +11,6 @@ import (
) )
func init() { func init() {
BuildCmd.Flags().String("config", "bbgo.yaml", "config file")
RootCmd.AddCommand(BuildCmd) RootCmd.AddCommand(BuildCmd)
} }