summaryrefslogtreecommitdiffstats
path: root/commands/benchmark.go
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2015-12-02 11:56:36 -0700
committerAnthony Fok <foka@debian.org>2015-12-02 11:56:36 -0700
commitd48781badf4bf26bffe116365daf653b5eaa5935 (patch)
tree69d9161a8647fbbb6d8de8f1fa3a3206c15babb6 /commands/benchmark.go
parentc5287e78170474abcf8bbb3aa0fd837de2bafaaa (diff)
One more error fix in the server command
And some other small code clean-up. See #1502
Diffstat (limited to 'commands/benchmark.go')
-rw-r--r--commands/benchmark.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/benchmark.go b/commands/benchmark.go
index 530bf3906..e83fa5506 100644
--- a/commands/benchmark.go
+++ b/commands/benchmark.go
@@ -23,7 +23,7 @@ var cpuProfilefile string
var memProfilefile string
var benchmarkTimes int
-var benchmark = &cobra.Command{
+var benchmarkCmd = &cobra.Command{
Use: "benchmark",
Short: "Benchmark hugo by building a site a number of times.",
Long: `Hugo can build a site many times over and analyze the running process
@@ -38,10 +38,10 @@ creating a benchmark.`,
}
func init() {
- benchmark.Flags().StringVar(&cpuProfilefile, "cpuprofile", "", "path/filename for the CPU profile file")
- benchmark.Flags().StringVar(&memProfilefile, "memprofile", "", "path/filename for the memory profile file")
+ benchmarkCmd.Flags().StringVar(&cpuProfilefile, "cpuprofile", "", "path/filename for the CPU profile file")
+ benchmarkCmd.Flags().StringVar(&memProfilefile, "memprofile", "", "path/filename for the memory profile file")
- benchmark.Flags().IntVarP(&benchmarkTimes, "count", "n", 13, "number of times to build the site")
+ benchmarkCmd.Flags().IntVarP(&benchmarkTimes, "count", "n", 13, "number of times to build the site")
}
func bench(cmd *cobra.Command, args []string) error {