You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type config struct {
Version bool `conf:"version" help:"Print the program version and exit."`
S3Bucket string `conf:"s3-bucket" help:"The S3 bucket to deliver logs batches to." validate:"nonzero"`
}
If you run ./myprogram --version you get the following error:
Error:
invalid value passed to s3-bucket: zero value
Instead I expect to see the version number printed out. I'm not sure what the right approach would be.
The text was updated successfully, but these errors were encountered:
We have a config that looks like e.g.
If you run
./myprogram --version
you get the following error:Instead I expect to see the version number printed out. I'm not sure what the right approach would be.
The text was updated successfully, but these errors were encountered: