Skip to content

Commit

Permalink
loads schemacfg with correct flagset (#2917)
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Diehl <ow.diehl@gmail.com>
  • Loading branch information
owen-d authored Jul 23, 2020
1 parent 674f864 commit cedb0b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/chunk/schema_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ type SchemaConfig struct {

// RegisterFlags adds the flags required to config this to the given FlagSet.
func (cfg *SchemaConfig) RegisterFlags(f *flag.FlagSet) {
flag.StringVar(&cfg.fileName, "schema-config-file", "", "The path to the schema config file.")
f.StringVar(&cfg.fileName, "schema-config-file", "", "The path to the schema config file.")
// TODO(gouthamve): Add a metric for this.
flag.StringVar(&cfg.legacyFileName, "config-yaml", "", "DEPRECATED(use -schema-config-file) The path to the schema config file.")
f.StringVar(&cfg.legacyFileName, "config-yaml", "", "DEPRECATED(use -schema-config-file) The path to the schema config file.")
}

// loadFromFile loads the schema config from a yaml file
Expand Down

0 comments on commit cedb0b4

Please sign in to comment.