returnerrors.New("In production mode it is required to specify either an email address with the --email flag, or explicitly opting out with --no-email. See help or README for more info.")
}
ifviper.GetBool("no-email")&&conf.Email!=""{
returnerrors.New("--no-email cannot be combined with --email")
ifconf.Production{
if!viper.GetBool("no-email")&&conf.Email==""{
returnerrors.New("In production mode it is required to specify either an email address with the --email flag, or explicitly opting out with --no-email. See help or README for more info.")
}
ifviper.GetBool("no-email")&&conf.Email!=""{
returnerrors.New("--no-email cannot be combined with --email")