From 0f3008aaab7bb9f6e2dcba20b161ff521b32cb34 Mon Sep 17 00:00:00 2001 From: Michael Wan Date: Fri, 23 Mar 2018 00:09:19 -0400 Subject: [PATCH] revert #917 Signed-off-by: Michael Wan --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index c8695b825..19468edb3 100644 --- a/main.go +++ b/main.go @@ -64,11 +64,11 @@ func main() { func setupFlags(cmd *cobra.Command) { // Cobra supports Persistent Flags, which, if defined here, // will be global for your application. - flagSet := cmd.PersistentFlags() + // flagSet := cmd.PersistentFlags() // Cobra also supports local flags, which will only run // when this action is called directly. - // flagSet := cmd.Flags() + flagSet := cmd.Flags() flagSet.StringVar(&cfg.HomeDir, "home-dir", "/var/lib/pouch", "Specify root dir of pouchd") flagSet.StringArrayVarP(&cfg.Listen, "listen", "l", []string{"unix:///var/run/pouchd.sock"}, "Specify listening addresses of Pouchd")