func OptConfigFromEnv() Option {
	return func(a *App) error {
		var cfg Config
		if err := env.Env().ReadInto(&cfg); err != nil {
			return err
		}
		return OptConfig(cfg)(a)
	}
}
// OptConfigFromEnv sets the config from the environment.
OptConfigFromEnv sets the config from the environment.
// OptConfigFromEnv sets the config from the environment .
func OptConfigFromEnv() Option {
	return func(a *App) error {
		var cfg Config
		if err := env.Env().ReadInto(&cfg); err != nil {
			return err
		}
		return OptConfig(cfg)(a)
	}
}
func OptConfigFromEnv ( ) Option { return func ( a * App ) error { var cfg Config if err := env . Env ( ) . ReadInto ( & cfg ) ; err != nil { return err } return OptConfig ( cfg ) ( a ) } }
OptConfigFromEnv sets the config from the environment.
OptConfigFromEnv sets the config from the environment .