public static void main()

in s1e1-totally-lit/hue-lifx-java/src/main/java/com/awslabs/iot_all_the_things/special_projects_edition/totally_lit/hue/ListHueLights.java [12:27]


    public static void main(String[] args) throws InterruptedException, ExecutionException {
        if (args.length < 1) {
            log.error("You must specify the following parameters (in order):");
            log.error("  - The Hue bridge's username/API key");
            log.error("");
            log.error("Example: ./list-hue-lights.sh USERNAME");
            log.error("");
            log.error("NOTE: The Hue bridge's IP address is automatically discovered");

            System.exit(1);
        }

        HueShared.setUsername(args[0]);

        Shared.logObjectAsJson(HueShared.getLightMap());
    }