Skip to content
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

error on handle corba StringArray flag #246

Closed
vvhh2002 opened this issue Oct 4, 2016 · 2 comments · Fixed by #1160
Closed

error on handle corba StringArray flag #246

vvhh2002 opened this issue Oct 4, 2016 · 2 comments · Fixed by #1160

Comments

@vvhh2002
Copy link

vvhh2002 commented Oct 4, 2016

I got an error while handle cobra StringArray flag. I think this may be a BUG

flags.StringArrayP("URLS", "U", []string{"http://github.com", "http://github.com"}, "test URLS")
viper.BindPFlag("URLS", flags.Lookup("URLS"))
Result:=viper.GetStringSlice("URLS")

Result is only one element=>

Result=[[http://github.com,http://github.com]]
It should be [http://github.com http://github.com]

@praveenkumar
Copy link

@vvhh2002 I am also facing same, Are you able to find workaround or solution for this?

@databus23
Copy link

I think #398 should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants