From ac9d7898661dbb7ebdf4f2ee2a403b9e1b4af627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E9=A3=9E?= Date: Sat, 24 Mar 2018 17:39:56 +0800 Subject: [PATCH] change Flags to PersistentFlags --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 19468edb39..43c9e919af 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ func main() { setupFlags(cmdServe) parseFlags(cmdServe, os.Args[1:]) - if err := loadDaemonFile(&cfg, cmdServe.Flags()); err != nil { + if err := loadDaemonFile(&cfg, cmdServe.PersistentFlags()); err != nil { logrus.Errorf("failed to load daemon file: %s", err) os.Exit(1) }