InitializeWithDefaults is the same as Initialize but it sets some sane default options (see DefaultOptions) alongside the passed in options.
(name, envPrefix string, defaults any, opts ...Option)
| 206 | // InitializeWithDefaults is the same as Initialize but it sets some sane default options (see DefaultOptions) |
| 207 | // alongside the passed in options. |
| 208 | func InitializeWithDefaults(name, envPrefix string, defaults any, opts ...Option) *Manager { |
| 209 | return Initialize(name, envPrefix, defaults, append(DefaultOptions, opts...)...) |
| 210 | } |
| 211 | |
| 212 | // Parse parses the command line arguments. |
| 213 | func (m *Manager) Parse(flags ...string) error { |