summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/benchmark.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/benchmark.go b/commands/benchmark.go
index 77790e24a..a66aee0b5 100644
--- a/commands/benchmark.go
+++ b/commands/benchmark.go
@@ -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
}