public static void exitAndShowUsageIfNoArgs()

in s1e1-totally-lit/hue-lifx-java/src/main/java/com/awslabs/iot_all_the_things/special_projects_edition/totally_lit/hue/HueShared.java [134:150]


    public static void exitAndShowUsageIfNoArgs(String[] args, String scriptName) {
        if (args.length < 2) {
            log.error("You must specify the following parameters (in order):");
            log.error("  - The Hue bridge's username/API key");
            log.error("  - The Hue bridge's light names and/or room names (in quotes if the name contains spaces)");
            log.error("");
            log.error("Example: ./" + scriptName + " USERNAME \"Light 1\" \"Light 2\" Basement");
            log.error("");
            log.error("You must specify at least one light but may specify any number of lights by adding more parameters");
            log.error("");
            log.error("NOTE: The Hue bridge's IP address is automatically discovered");
            log.error("NOTE: Light names and room names can be mixed");
            log.error("NOTE: Light names and room names are case-insensitive");

            System.exit(1);
        }
    }