diff options
author | Cameron Moore <moorereason@gmail.com> | 2017-09-26 13:03:04 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-09-26 20:03:04 +0200 |
commit | b4a14c25fe85c41b79497be27ead128502a4dd7b (patch) | |
tree | 99cdbb0d9ab7a7adf137ce492773750aeec8e431 /commands | |
parent | cb8eb472602754b310eaf7a10271149d1e1f5d75 (diff) |
metrics: Add simple template metrics feature
Diffstat (limited to 'commands')
-rw-r--r-- | commands/hugo.go | 2 |
1 files changed, 2 insertions, 0 deletions
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. |