New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2 bug: ( StringSliceFlag, Value(default) does not set value in Destination ) #1121
Comments
Yes, this seems like a bug I reproduced it on my side. @sgoroshko do you think that you're going to open a PR to address that issue? |
by analog with the implementation of other flags flag.go:839 and it's set, example for int, by flag.go:649 so, for me solution can be like that
also, think it's problem actual for all slice like flags. |
can u review my PR? |
Hey @sgoroshko in case you missed in, you'll need to resolve the duplication between your PR and #1123 |
fix #1121(StringSliceFlag set default value into destination)
my urfave/cli version is
github.com/urfave/cli/v2 v2.2.0
Checklist
Dependency Management
Describe the bug
Default value does not setting in destination.
To reproduce
Observed behavior
Expected behavior
Additional context
Want to fix this yourself?
set default values manually
cfg := &config{Countries: []string{"CA", "US"}}
go version go1.14.2 darwin/amd64
Run
go env
and paste its output hereThe text was updated successfully, but these errors were encountered: