public static char[] getOptions(String cmdLineArg) {
        char[] result = new char[0];

        if (cmdLineArg == null || cmdLineArg.isEmpty()) {
            return result;
        }

        // avoid "--abc"
        if (cmdLineArg.lastIndexOf('-') == 0) {
            result = cmdLineArg.replace("-", "").toCharArray();
        }

        return result;
    }