From b4a14c25fe85c41b79497be27ead128502a4dd7b Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Tue, 26 Sep 2017 13:03:04 -0500 Subject: metrics: Add simple template metrics feature --- commands/hugo.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands/hugo.go') diff --git a/commands/hugo.go b/commands/hugo.go index 388f55db9..d2bf18c47 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -241,6 +241,7 @@ func initHugoBuildCommonFlags(cmd *cobra.Command) { cmd.Flags().Bool("enableGitInfo", false, "add Git revision, date and author info to the pages") cmd.Flags().BoolVar(&nitro.AnalysisOn, "stepAnalysis", false, "display memory and timing of different steps of the program") + cmd.Flags().Bool("templateMetrics", false, "display metrics about template executions") cmd.Flags().Bool("pluralizeListTitles", true, "pluralize titles in lists using inflect") cmd.Flags().Bool("preserveTaxonomyNames", false, `preserve taxonomy names as written ("GĂ©rard Depardieu" vs "gerard-depardieu")`) cmd.Flags().BoolP("forceSyncStatic", "", false, "copy all files when static is changed.") @@ -475,6 +476,7 @@ func (c *commandeer) initializeFlags(cmd *cobra.Command) { "forceSyncStatic", "noTimes", "noChmod", + "templateMetrics", } // Remove these in Hugo 0.23. -- cgit v1.2.3