mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-31 15:29:41 +02:00
add V2: prefix to all config options.
This commit is contained in:
parent
96ab1c53bb
commit
6a9cb24743
7 changed files with 35 additions and 35 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue