why pflag are overriden by configuration file ? #1868
-
Hi, According the doc, the precedence is following: explicit call to Set So I expect that config will not override flags. Here is an example:
At the end the result will be the value from configuration file. Why ? Thanks for answer |
Beta Was this translation helpful? Give feedback.
Answered by
sagikazarmark
Jun 20, 2024
Replies: 1 comment 3 replies
-
File values will override flag defaults. Setting the flag should take precedence though. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
./myapp --foo bar
?