From: spf13 Date: Tue, 17 Nov 2015 02:54:21 +0000 (-0500) Subject: permit the notimes flag on hugo server X-Git-Tag: v0.15~50 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e1618e9d2f609ca6983aa2d3907bd4b1bcef5da4;p=brevno-suite%2Fhugo permit the notimes flag on hugo server --- diff --git a/commands/server.go b/commands/server.go index 5f31fcfd..49f0e1e5 100644 --- a/commands/server.go +++ b/commands/server.go @@ -79,6 +79,7 @@ func init() { serverCmd.Flags().BoolVarP(&serverWatch, "watch", "w", false, "watch filesystem for changes and recreate as needed") serverCmd.Flags().BoolVarP(&serverAppend, "appendPort", "", true, "append port to baseurl") serverCmd.Flags().BoolVar(&disableLiveReload, "disableLiveReload", false, "watch without enabling live browser reload on rebuild") + serverCmd.Flags().BoolVarP(&NoTimes, "noTimes", "", false, "Don't sync modification time of files") serverCmd.Flags().String("memstats", "", "log memory usage to this file") serverCmd.Flags().Int("meminterval", 100, "interval to poll memory usage (requires --memstats)") serverCmd.Run = server