Browse Source

avoid confusion: conf and config are too similar

pull/1862/head
Chris Lu 4 years ago
parent
commit
d3c31c69a7
  1. 2
      weed/util/fla9/fla9.go

2
weed/util/fla9/fla9.go

@ -1078,7 +1078,7 @@ func NewFlagSetWithEnvPrefix(name string, prefix string, errorHandling ErrorHand
// DefaultConfigFlagName defines the flag name of the optional config file // DefaultConfigFlagName defines the flag name of the optional config file
// path. Used to lookup and parse the config file when a default is set and // path. Used to lookup and parse the config file when a default is set and
// available on disk. // available on disk.
var DefaultConfigFlagName = "conf"
var DefaultConfigFlagName = "flags"
// ParseFile parses flags from the file in path. // ParseFile parses flags from the file in path.
// Same format as commandline arguments, newlines and lines beginning with a // Same format as commandline arguments, newlines and lines beginning with a

Loading…
Cancel
Save