fix: default prefix

This commit is contained in:
Roi Feng
2025-02-16 01:38:39 -05:00
parent b019adef0e
commit 735dcbaa4a

View File

@ -15,6 +15,10 @@ func main() {
flag.StringVar(&basePath, "prefix", "", "Config file base path")
flag.Parse()
if basePath == "" {
basePath, _ = os.Getwd()
}
// Load MainConfig
cfg, err := config.LoadMainConfig(basePath)
if err != nil {