From 29874db5b84c3ce641830a76e2eaec081a29fb97 Mon Sep 17 00:00:00 2001 From: Lan Phan Date: Fri, 22 Mar 2024 14:35:06 +0700 Subject: [PATCH] consistent config param for all sub-commands --- pkg/cmd/backtest.go | 1 - pkg/cmd/build.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/cmd/backtest.go b/pkg/cmd/backtest.go index 17d346224..d94e93023 100644 --- a/pkg/cmd/backtest.go +++ b/pkg/cmd/backtest.go @@ -43,7 +43,6 @@ func init() { 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().String("config", "bbgo.yaml", "strategy config file") BacktestCmd.Flags().Bool("force", false, "force execution without confirm") BacktestCmd.Flags().String("output", "", "the report output directory") BacktestCmd.Flags().Bool("subdir", false, "generate report in the sub-directory of the output directory") diff --git a/pkg/cmd/build.go b/pkg/cmd/build.go index 3a8c5c22d..3814f0228 100644 --- a/pkg/cmd/build.go +++ b/pkg/cmd/build.go @@ -11,7 +11,6 @@ import ( ) func init() { - BuildCmd.Flags().String("config", "bbgo.yaml", "config file") RootCmd.AddCommand(BuildCmd) }