This PR proposes to split setting of default values and flag registration. This allows clients to modify default values, and have correct help message printed, by using:
var cfg Config
cfg.DefaultValues()
cfg.RegisterInstrumentation = false
cfg.RegisterFlags(flag.CommandLine)
This PR proposes to split setting of default values and flag registration. This allows clients to modify default values, and have correct help message printed, by using:
I'd like to know what you think about this idea.