Skip to content

Commit 1e1e380

Browse files
committed
Deprecate the --config flag
1 parent 4a2b6b9 commit 1e1e380

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ covered in the changelog.
1515
- Expand `.` in the path of directory mappings
1616
### Changed
1717
- Directory mappings now load dependencies
18+
### Deprecated
19+
- The flag `--config` was deprecated due to confusing behavior with directory-aware configuration
1820

1921
## [1.3.0] - 2022-02-01
2022
### Added

cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func init() {
4444
"Overrides the default config file to use.",
4545
)
4646
_ = rootCmd.MarkPersistentFlagFilename("config", "yml")
47+
_ = rootCmd.PersistentFlags().MarkDeprecated("config", "since the introduction of directory-aware loading.")
4748
}
4849

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

0 commit comments

Comments
 (0)