Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yumenaka committed Dec 1, 2024
1 parent 2556dab commit 1ce12f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func InitFlags() {
runtimeViper.SetEnvPrefix("COMI")
cobra.MousetrapHelpText = "" // 屏蔽鼠标提示,支持拖拽、双击运行
cobra.MousetrapDisplayDuration = 5 //"这是命令行程序"的提醒表示时间
rootCmd.PersistentFlags().BoolVar(&config.Config.AutoRescan, "rescan", true, locale.GetString("RESCAN"))
//rootCmd.PersistentFlags().BoolVar(&config.Config.AutoRescan, "rescan", true, locale.GetString("RESCAN"))
// 启用登陆保护,需要输入用户名、密码。
rootCmd.PersistentFlags().BoolVar(&config.Config.EnableLogin, "login", false, locale.GetString("ENABLE_LOGIN"))
rootCmd.PersistentFlags().StringVarP(&config.Config.Username, "username", "u", "admin", locale.GetString("USERNAME"))
Expand Down

0 comments on commit 1ce12f0

Please sign in to comment.