add V2: prefix to all config options.

This commit is contained in:
Miroslav Šedivý 2024-07-18 21:54:53 +02:00
parent 96ab1c53bb
commit 6a9cb24743
7 changed files with 35 additions and 35 deletions

View file

@ -62,7 +62,7 @@ func (Root) Init(cmd *cobra.Command) error {
}
func (Root) InitV2(cmd *cobra.Command) error {
cmd.PersistentFlags().BoolP("logs", "l", false, "save logs to file")
cmd.PersistentFlags().BoolP("logs", "l", false, "V2: save logs to file")
if err := viper.BindPFlag("logs", cmd.PersistentFlags().Lookup("logs")); err != nil {
return err
}