move flag to options namespace

This commit is contained in:
Hayden 2024-01-18 13:36:27 -06:00
parent 4e608dc054
commit b92d7f988d
No known key found for this signature in database
GPG key ID: 17CF79474E257545
2 changed files with 6 additions and 6 deletions

View file

@ -132,16 +132,16 @@ func run(cfg *config.Config) error {
currencies.CollectDefaults(),
}
if cfg.CurrencyConfig != "" {
if cfg.Options.CurrencyConfig != "" {
log.Info().
Str("path", cfg.CurrencyConfig).
Str("path", cfg.Options.CurrencyConfig).
Msg("loading currency config file")
content, err := os.ReadFile(cfg.CurrencyConfig)
content, err := os.ReadFile(cfg.Options.CurrencyConfig)
if err != nil {
log.Fatal().
Err(err).
Str("path", cfg.CurrencyConfig).
Str("path", cfg.Options.CurrencyConfig).
Msg("failed to read currency config file")
}