diff --git a/main.go b/main.go index 862bee2..9d62aa8 100644 --- a/main.go +++ b/main.go @@ -1147,11 +1147,11 @@ func printUsage() { fmt.Println(" logout") fmt.Println(" getfans") fmt.Println(" getschedule ") - fmt.Println(" setpower ") - fmt.Println(" setspeed ") - fmt.Println(" setmode ") - fmt.Println(" settimer ") - fmt.Println(" setoscillation ") + fmt.Println(" power ") + fmt.Println(" speed ") + fmt.Println(" mode ") + fmt.Println(" timer ") + fmt.Println(" oscillation ") } func main() { @@ -1167,7 +1167,7 @@ func main() { getSensors() case "getschedule": getSchedule(args[1]) - case "setpower": + case "power": if len(args) < 3 { fmt.Println("Not enough arguments") printUsage() @@ -1176,7 +1176,7 @@ func main() { fanID := args[1] power := args[2] setPower(fanID, power) - case "setspeed": + case "speed": if len(args) < 3 { fmt.Println("Not enough arguments") printUsage() @@ -1185,7 +1185,7 @@ func main() { fanID := args[1] speed := args[2] setSpeed(fanID, speed) - case "setmode": + case "mode": if len(args) < 3 { fmt.Println("Not enough arguments") printUsage() @@ -1194,7 +1194,7 @@ func main() { fanID := args[1] mode := args[2] setMode(fanID, mode) - case "settimer": + case "timer": if len(args) < 3 { fmt.Println("Not enough arguments") printUsage() @@ -1203,7 +1203,7 @@ func main() { fanID := args[1] hours := args[2] setTimer(fanID, hours) - case "setoscillation": + case "oscillation": if len(args) < 4 { fmt.Println("Not enough arguments") printUsage()