Nested .
separated flags with common prefix not working with pflag in Viper >= 1.18.0
#1922
Open
3 tasks done
Labels
kind/bug
Something isn't working
Preflight Checklist
Viper Version
1.18.0
Go Version
1.22.6
Config Source
Flags
Format
Other (specify below)
Repl.it link
No response
Code reproducing the issue
Expected Behavior
it should print:
Actual Behavior
in v1.17.0
it is working as expected
returning output as
Steps To Reproduce
Additional Information
Updated:
I can see it is working with another nested flags like
_ = pflag.String("a.b.c.d.v1", "some/path/abc", "endpoint of gateway server v4")
but i am wondering what is the special with key
gateway.endpoint.*
The text was updated successfully, but these errors were encountered: