shithub: hugo

Download patch

ref: 1f61f4032824e4cc77509f263145324995f4862a
parent: c1f8b188f7c05cd38e7bac71998fffd0485dd5f5
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Feb 27 13:01:01 EST 2016

Use flagChanged in all places

--- a/commands/server.go
+++ b/commands/server.go
@@ -101,7 +101,7 @@
 		return err
 	}
 
-	if cmd.Flags().Lookup("disableLiveReload").Changed {
+	if flagChanged(cmd.Flags(), "disableLiveReload") {
 		viper.Set("DisableLiveReload", disableLiveReload)
 	}