public static boolean isOptionPresent(String cmdLineArg, char option) {
        boolean result = false;

        // avoid "--abc"
        if (cmdLineArg.lastIndexOf('-') == 0) {
            result = cmdLineArg.indexOf(option) >= 1;
        }

        return result;
    }