Kōshin Alex Flint
Kōshin Alex Flint
Do you have a default value configured, perhaps with a struct tag like `default:"..."`? ```go type Args struct { // ... Environment JSONValue[map[string]string] `arg:"--env" default:"something"` // .... } ``` If...
Very interesting, I was able to reproduce this in a unit test! I don't know exactly what's happening but a short-term fix seems to be to make your argument a...
OK I have a fix but it will require a bit more work to merge it. A second short-term fix for you is to implement `encoding.TextMarshaler` on your type, as...
Yes, it's true. It is a significant shortcoming of the API. Thank you for investigating it. I need to find time to develop an API that can support this.
Fixed in #156
@padilo thank you for putting this together. Can you please add some unit tests for the feature you're adding (options that are only settable via environment-variables?). Also please add some...
Yes I do think that an empty environment variable should result in the zero value, not an error. I may be able to look into this in next few weeks....
Yes this is do-able but I fear that it would add more complexity than it's worth, and would make it more difficult to understand code that uses this library. Are...
Got it. Seems reasonable, and fun to implement :). I'm about to go into a meditation retreat but will try to find time for this afterwards.
Would you be interested in providing some funding to me in order to implement this feature?