Use flagChanged in all places
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 27 Feb 2016 17:01:01 +0000 (18:01 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 27 Feb 2016 17:01:01 +0000 (18:01 +0100)
commands/server.go

index 53c38099111ba23a3aa24bc0e22109fd6d6d38f6..6007d9fe2da74e04cd6435d5a6f25ecd7da2a0e4 100644 (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)
        }