public static void main(String[] args) {

        if (args.length == 0) {
            startOpenPythiaInGuiMode();
            return;
        }

        List<String> arguments = new ArrayList<>(Arrays.asList(args));
        if (arguments.contains("-v") || arguments.contains("-V")) {
            printVersionToOutput();
            return;
        }

        if (arguments.contains("-t") || arguments.contains("-T")) {
            printHelpToOutput();
            return;
        }

        if (arguments.contains("-s") || arguments.contains("-S")) {
            startBatchModeTakeSnapshot(arguments);
            return;
        }

        if (arguments.contains("-c")) {
            PreferencesManager.setPathToJDBCDriver("xxx");
            PreferencesManager.savePythiaConfiguration();
            return;
        }

        System.out.println("Unknown options.");
    }