public static void main(String[] args) throws IOException {
        APIKey = getAPIKey();
        
        String[] arguments = {"masteries","chaosdusk","adc"};
        
        if (args.length != 0)
            arguments = args;
        
        switch(arguments.length) {
            case 0:
                displayHelp();
                break;
            case 1:
                switch(arguments[0].toLowerCase()) {
                    case "help":
                        displayHelp();
                        break;
                    default:
                        String name = arguments[0];
                        System.out.println(new Summoner(getContent("v1.2/summoner/by-name/" + name)));
                        break;
                }
                break;
            case 2:
                switch(arguments[0].toLowerCase()) {
                    case "masteries":
                        System.out.println(new Masteries(getContent("v1.2/summoner/" + getIdFromName(arguments[1]) + "/masteries")));
                        break;
                    default:
                        throw new IllegalArgumentException("First argument not recognized.");
                }
                break;
            case 3:
                switch(arguments[0].toLowerCase()) {
                    case "masteries":
                        String name = arguments[1];
                        Masteries masteryPages = new Masteries(getContent("v1.2/summoner/" + getIdFromName(name) + "/masteries"));
                        MasteryPage masteryPage = masteryPages.getPageByName(arguments[2]);
                        if (masteryPage != null)
                            System.out.println(masteryPage);
                        else
                            System.out.println("Mastery page \"" + arguments[2] + "\" not found for summoner \"" + arguments[1] + ".\"");
                        break;
                    default:
                        throw new IllegalArgumentException("First argument not recognized.");
                }
                break;
            default:
                throw new IllegalArgumentException("Too many arguements.");
        }
    }