velodrome/sql/mysql.go
func (config *MySQLConfig) AddFlags(cmd *cobra.Command) {
	cmd.PersistentFlags().StringVar(&config.User, "user", "root", "MySql user")
	cmd.PersistentFlags().StringVar(&config.Password, "password", "", "MySql password")
	cmd.PersistentFlags().StringVar(&config.Host, "host", "localhost", "MySql server IP")
	cmd.PersistentFlags().IntVar(&config.Port, "port", 3306, "MySql server port")
	cmd.PersistentFlags().StringVar(&config.Db, "database", "github", "MySql server database name")
}
func (config *MySQLConfig) AddFlags(cmd *cobra.Command) {
	cmd.PersistentFlags().StringVar(&config.User, "user", "root", "MySql user")
	cmd.PersistentFlags().StringVar(&config.Password, "password", "", "MySql password")
	cmd.PersistentFlags().StringVar(&config.Host, "host", "localhost", "MySql server IP")
	cmd.PersistentFlags().IntVar(&config.Port, "port", 3306, "MySql server port")
	cmd.PersistentFlags().StringVar(&config.Db, "database", "github", "MySql server database name")
}
// AddFlags parses options for database configuration