From 3b449559cf34cbcc74460b59041a4399d3226e5a Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Sun, 12 Apr 2015 09:36:45 -0600 Subject: Add --path to bolt bench. --- cmd/bolt/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/bolt/main.go') diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go index 183d1f2..0372e19 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -99,6 +99,7 @@ func NewApp() *cli.App { &cli.Float64Flag{Name: "fill-percent", Value: bolt.DefaultFillPercent, Usage: "Fill percentage"}, &cli.BoolFlag{Name: "no-sync", Usage: "Skip fsync on every commit"}, &cli.BoolFlag{Name: "work", Usage: "Print the temp db and do not delete on exit"}, + &cli.StringFlag{Name: "path", Usage: "Path to database to use"}, }, Action: func(c *cli.Context) { statsInterval, err := time.ParseDuration(c.String("stats-interval")) @@ -121,6 +122,7 @@ func NewApp() *cli.App { FillPercent: c.Float64("fill-percent"), NoSync: c.Bool("no-sync"), Clean: !c.Bool("work"), + Path: c.String("path"), }) }, }} -- cgit v1.2.3