mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
consistent config param for all sub-commands
This commit is contained in:
parent
693b641612
commit
29874db5b8
|
@ -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")
|
||||||
|
|
|
@ -11,7 +11,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
BuildCmd.Flags().String("config", "bbgo.yaml", "config file")
|
|
||||||
RootCmd.AddCommand(BuildCmd)
|
RootCmd.AddCommand(BuildCmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user