ref: e1618e9d2f609ca6983aa2d3907bd4b1bcef5da4
parent: cb48425f2d0d4c261eaf04d872dbf2192854bca2
author: spf13 <[email protected]>
date: Mon Nov 16 16:54:21 EST 2015
permit the notimes flag on hugo server
--- a/commands/server.go
+++ b/commands/server.go
@@ -79,6 +79,7 @@
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