permit the notimes flag on hugo server
authorspf13 <steve.francia@gmail.com>
Tue, 17 Nov 2015 02:54:21 +0000 (21:54 -0500)
committerspf13 <steve.francia@gmail.com>
Tue, 17 Nov 2015 02:56:14 +0000 (21:56 -0500)
commands/server.go

index 5f31fcfd16861dcbe9ac7ce3dd1563b0e6a76e75..49f0e1e59603328eda6be2379649c08403f22599 100644 (file)
@@ -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