Skip to content

Commit

Permalink
Merge pull request #952 from HusterWan/zr/fix-load-config-file-failed
Browse files Browse the repository at this point in the history
bugfix: revert #917
  • Loading branch information
allencloud authored Mar 23, 2018
2 parents ecdb925 + 0f3008a commit 9dbb6de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9dbb6de

Please sign in to comment.