 }
 
 let isSetNonBoolOptions = CLIOptions.filter({ $0.isSet == true &&
-                                              $0 as? BoolOption == nil})
+                                              $0 as? BoolOption == nil })
 let isSetBoolOptions = CLIOptions.filter({ $0 as? BoolOption != nil })
-                                 .map({$0 as! BoolOption})
-                                 .filter({ $0.value == true})
+                                 .map({ $0 as! BoolOption })
+                                 .filter({ $0.value == true })
 
 //------------------------------------------------------------------------------
 // MARK: FUNCTIONS
 //------------------------------------------------------------------------------
 
-func warningLevel(value: Double, maxValue: Double) -> String {
+func warningLevel(value: Double, maxValue: Double) -> (name: String,
+                                                       color: ANSIColor) {
     let percentage = value / maxValue
 
     switch percentage {
         case 0...0.45:
-            return "Normal"
+            return ("Normal", ANSIColor.Green)
         case 0.45...0.75:
-            return "Danger"
+            return ("Danger", ANSIColor.Yellow)
         default:
-            return "Crisis"
+            return ("Crisis", ANSIColor.Red)
     }
 }
 

            let current = smc.getFanRPM(i).rpm
            let min     = smc.getFanMinRPM(i).rpm
            let max     = smc.getFanMaxRPM(i).rpm
            let warning = CLIWarnFlag.value ?
                          "(\(warningLevel(Double(current), Double(max))))" : ""

            println("[\(i)] \(name)")
            println("\tCurrent:  \(current) RPM \(warning)")
            println("\tMin:      \(min) RPM")
            println("\tMax:      \(max) RPM")
        }

                helpMessage: "Show SMC keys when printing temperature sensors.")
let CLIWarnFlag        = BoolOption(shortFlag: "w", longFlag: "warn",
                                    helpMessage: "Show warnings for stats.")
let CLIColorFlag       = BoolOption(shortFlag: "c", longFlag: "color",
                                    helpMessage: "Use color for output.")
let CLIFanNumberFlag   = IntOption(shortFlag: "n", longFlag: "fan-number",
                  required: false, helpMessage: "The number of the fan to set.")
let CLIFanSpeedFlag    = IntOption(shortFlag: "s", longFlag: "fan-speed",
