private static void parseCommandLine(final String[] args) {
        for (final String arg : args) {
            if (arg.startsWith("--")) {
                final String command = arg.substring(2);
                final int index = command.indexOf('=');
                if (index < 0) {
                    OPTIONS.put(command, Boolean.TRUE);
                }
                else {
                    final String key = command.substring(0, index);
                    final String value = command.substring(index + 1);
                    OPTIONS.put(key, value);
                }
            }
            else if (arg.startsWith("-")) {
                final String command = arg.substring(1);
                final int length = command.length();
                for (int i = 0; i < length; ++i) {
                    OPTIONS.put(command.substring(i, i + 1), Boolean.TRUE);
                }
            }
            else {
                if (!arg.contains("=")) {
                    OPTIONS.put(MAIN, arg);
                }
            }
        }
    }