Skip to content

Commit

Permalink
Deprecate the --config flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DBX12 committed Sep 5, 2022
1 parent 4a2b6b9 commit 1e1e380
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ covered in the changelog.
- Expand `.` in the path of directory mappings
### Changed
- Directory mappings now load dependencies
### Deprecated
- The flag `--config` was deprecated due to confusing behavior with directory-aware configuration

## [1.3.0] - 2022-02-01
### Added
Expand Down
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func init() {
"Overrides the default config file to use.",
)
_ = rootCmd.MarkPersistentFlagFilename("config", "yml")
_ = rootCmd.PersistentFlags().MarkDeprecated("config", "since the introduction of directory-aware loading.")
}

// initConfig reads in config file and ENV variables if set.
Expand Down

0 comments on commit 1e1e380

Please sign in to comment.