class OptionsParser {

    public String getOptionValue(SubmitOption option) {
        String value;
        if (commandLine.hasOption(option.key)
            && ! (value = commandLine.getOptionValue(option.key)).isEmpty()) {
            return value;
        } else {
            if (option.value == null || option.value.isEmpty()) {
                throw new RuntimeException("Option " + option.key + " is indispensable."
                    + " Please complete options then retry to run.");
            }
            return option.value;
        }
    }

    public  OptionsParser(String[] args);

}