by runeks · 3y ago · 0 comments
* Config files
* CLI options
* Environment variables
And what takes precedence when.
Now, when I run `cmd -h`, I get output like the following for all flags (example from [1]):
--count , -c : Number of times to dig
type : int
default : 1
configpath : dig.combine.count
required : true
currentvalue (set by config) : 1
It's sometimes more verbose than I'd like, but it's quite useful for figuring out how a flag got its current value[0] https://github.com/bbkane/warg [1] https://github.com/bbkane/shovel