diff --git a/cli/flag.go b/cli/flag.go index 2dcfd5a3..2a324d8d 100644 --- a/cli/flag.go +++ b/cli/flag.go @@ -45,8 +45,8 @@ func InitCli() { os.Exit(0) } - if Config != nil && !utils.IsFileExist(*Config) { - panic("Config file not found") + if !utils.IsFileExist(*Config) { + return } viper.SetConfigFile(*Config)