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")