Replies: 4 comments
-
As in being able to differentiate between being set by an envar and being set by a flag? No there isn't currently. |
Beta Was this translation helpful? Give feedback.
-
How hard would it be to support pointer types like var (
cli struct {
MyArg *string
}
) such that arguments not passed on the command line end up with null values in the struct? I have a similar scenario where I need to distinguish between the user passing a value to a flag and the user not passing the flag at all. |
Beta Was this translation helpful? Give feedback.
-
That is essentially what this PR does if you'd like to give it a shot, there's some minor feedback to be addressed but it mostly LGTM. |
Beta Was this translation helpful? Give feedback.
-
See #214. |
Beta Was this translation helpful? Give feedback.
-
kong.Value
hasSet
property: Set to true when this value is set through some mechanism. Is there a way to tell that aflag
is set by users?To tell the difference between the following:
Beta Was this translation helpful? Give feedback.
All reactions