Skip to content

Commit

Permalink
Merge pull request #1603 from lanphan/cobra
Browse files Browse the repository at this point in the history
consistent config param for all sub-commands
  • Loading branch information
c9s authored Mar 26, 2024
2 parents 693b641 + 29874db commit f3f21f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion pkg/cmd/backtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion pkg/cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
)

func init() {
BuildCmd.Flags().String("config", "bbgo.yaml", "config file")
RootCmd.AddCommand(BuildCmd)
}

Expand Down

0 comments on commit f3f21f3

Please sign in to comment.