Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Wan <[email protected]>
  • Loading branch information
HusterWan committed Mar 23, 2018
1 parent ecdb925 commit 0f3008a
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 0f3008a

Please sign in to comment.