diff options
Diffstat (limited to 'cmd/bolt/main.go')
-rw-r--r-- | cmd/bolt/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go index 302fe09..66c33d2 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -114,6 +114,7 @@ func NewApp() *cli.App { &cli.StringFlag{Name: "memprofile", Usage: "Memory profile output path"}, &cli.StringFlag{Name: "blockprofile", Usage: "Block profile output path"}, &cli.StringFlag{Name: "stats-interval", Value: "0s", Usage: "Continuous stats interval"}, + &cli.BoolFlag{Name: "work", Usage: "Print the temp db and do not delete on exit"}, }, Action: func(c *cli.Context) { statsInterval, err := time.ParseDuration(c.String("stats-interval")) @@ -133,6 +134,7 @@ func NewApp() *cli.App { MemProfile: c.String("memprofile"), BlockProfile: c.String("blockprofile"), StatsInterval: statsInterval, + Clean: !c.Bool("work"), }) }, }} |