groupOption.addSubOption(new GroupSubOption(subOption, false));
assertTrue(CmdLineUtils.isSubOption(groupOption, subOption));
}
public void testFindPerformAndQuitOptions() {
AdvancedCmdLineOption performAndQuitOption = createAdvancedOption("help",
null);
performAndQuitOption.setPerformAndQuit(true);
AdvancedCmdLineOption otherOption = createAdvancedOption("help", null);
otherOption.setPerformAndQuit(false);
CmdLineOptionInstance performAndQuitOptionInstance = new CmdLineOptionInstance(
performAndQuitOption, new ArrayList<String>());
CmdLineOptionInstance otherInstance = new CmdLineOptionInstance(
otherOption, new ArrayList<String>());