1 package configx 2 3 import ( 4 "github.com/spf13/pflag" 5 ) 6 7 // RegisterFlags registers the config file flag. 8 func RegisterFlags(flags *pflag.FlagSet) { 9 flags.StringSliceP("config", "c", []string{}, "Path to one or more .json, .yaml, .yml, .toml config files. Values are loaded in the order provided, meaning that the last config file overwrites values from the previous config file.") 10 } 11