Use flagChanged in all places

This commit is contained in:
Bjørn Erik Pedersen 2016-02-27 18:01:01 +01:00
parent c1f8b188f7
commit 1f61f40328

View file

@ -101,7 +101,7 @@ func server(cmd *cobra.Command, args []string) error {
return err
}
if cmd.Flags().Lookup("disableLiveReload").Changed {
if flagChanged(cmd.Flags(), "disableLiveReload") {
viper.Set("DisableLiveReload", disableLiveReload)
}