You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@commons.apache.org by gg...@apache.org on 2024/08/15 00:03:25 UTC
svn commit: r1087217 [41/44] - in /websites/production/commons/content/proper/commons-cli: ./ apidocs/ apidocs/org/apache/commons/cli/ apidocs/org/apache/commons/cli/class-use/ apidocs/src-html/org/apache/commons/cli/ jacoco/ jacoco/org.apache.commons....
Modified: websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/DefaultParser.html
==============================================================================
--- websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/DefaultParser.html (original)
+++ websites/production/commons/content/proper/commons-cli/xref/org/apache/commons/cli/DefaultParser.html Thu Aug 15 00:03:23 2024
@@ -451,7 +451,7 @@
<a class="jxr_linenumber" name="L443" href="#L443">443</a> }
<a class="jxr_linenumber" name="L444" href="#L444">444</a> <em class="jxr_comment">// if the option is part of a group, check if another option of the group has been selected</em>
<a class="jxr_linenumber" name="L445" href="#L445">445</a> <strong class="jxr_keyword">final</strong> <a name="OptionGroup" href="../../../../org/apache/commons/cli/OptionGroup.html#OptionGroup">OptionGroup</a> group = options.getOptionGroup(opt);
-<a class="jxr_linenumber" name="L446" href="#L446">446</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> selected = group != <strong class="jxr_keyword">null</strong> && group.getSelected() != <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L446" href="#L446">446</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> selected = group != <strong class="jxr_keyword">null</strong> && group.isSelected();
<a class="jxr_linenumber" name="L447" href="#L447">447</a> <strong class="jxr_keyword">if</strong> (!cmd.hasOption(option) && !selected) {
<a class="jxr_linenumber" name="L448" href="#L448">448</a> <em class="jxr_comment">// get the value from the properties</em>
<a class="jxr_linenumber" name="L449" href="#L449">449</a> <strong class="jxr_keyword">final</strong> String value = properties.getProperty(option);