Fixes config-file location in README.md (#171)
* Fixes config-file location in README.md * Corrected config file location in cobra help
This commit is contained in:
parent
a1e0f08408
commit
34439f2b9b
@ -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`
|
||||
|
@ -42,7 +42,7 @@ func init() {
|
||||
cobra.OnInitialize(initConfig)
|
||||
cobra.OnInitialize(initLogging)
|
||||
|
||||
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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user