Skip to content
Snippets Groups Projects
Commit 9bfd32ea authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Add debug flag to benchmark, not root

parent 01255ecc
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"fmt" "fmt"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"gitlab.com/privategrity/server/benchmark" "gitlab.com/privategrity/server/benchmark"
jww "github.com/spf13/jwalterweatherman"
"time" "time"
) )
...@@ -19,7 +20,7 @@ func init() { ...@@ -19,7 +20,7 @@ func init() {
"Number of nodes for the benchmark") "Number of nodes for the benchmark")
benchmarkCmd.Flags().IntVarP(&iterations, "iterations", "i", 100, benchmarkCmd.Flags().IntVarP(&iterations, "iterations", "i", 100,
"Number of times to iterate the benchmark") "Number of times to iterate the benchmark")
rootCmd.Flags().BoolVar(&debug, "debug", false, benchmarkCmd.Flags().BoolVar(&debug, "debug", false,
"Show debug and warning info (default is to only show errors and above)") "Show debug and warning info (default is to only show errors and above)")
rootCmd.AddCommand(benchmarkCmd) rootCmd.AddCommand(benchmarkCmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment