Fix hugo benchmark --renderToMemory

Fixes #4218
This commit is contained in:
Bjørn Erik Pedersen 2018-01-06 10:37:04 +01:00
parent ab82a27d05
commit 059e8458d6
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -48,7 +48,11 @@ func init() {
}
func benchmark(cmd *cobra.Command, args []string) error {
c, err := InitializeConfig(false, nil, benchmarkCmd)
cfgInit := func(c *commandeer) error {
c.Set("renderToMemory", renderToMemory)
return nil
}
c, err := InitializeConfig(false, cfgInit, benchmarkCmd)
if err != nil {
return err
}