diff --git a/README.md b/README.md index 3445229..55df4f7 100644 --- a/README.md +++ b/README.md @@ -249,5 +249,5 @@ layer: dive will search for configs in the following locations: - `$XDG_CONFIG_HOME/dive/*.yaml` - `$XDG_CONFIG_DIRS/dive/*.yaml` -- `~/.config/dive.yaml` +- `~/.config/dive/*.yaml` - `~/.dive.yaml` diff --git a/cmd/root.go b/cmd/root.go index b501b04..ec2dc0a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -41,7 +41,7 @@ func Execute() { func init() { cobra.OnInitialize(initConfig) - rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.dive.yaml, ~/.config/dive.yaml, or $XDG_CONFIG_HOME/dive.yaml)") + rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.dive.yaml, ~/.config/dive/*.yaml, or $XDG_CONFIG_HOME/dive.yaml)") rootCmd.PersistentFlags().BoolP("version", "v", false, "display version number") rootCmd.Flags().StringVarP(&exportFile, "json", "j", "", "Skip the interactive TUI and write the layer analysis statistics to a given file.")