This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-cli.git
commit ffce848a9637319617db903d1145dbd21292a8f4 Author: Gary D. Gregory <[email protected]> AuthorDate: Tue Jul 29 11:16:35 2025 -0400 Javadoc --- src/main/java/org/apache/commons/cli/Options.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/apache/commons/cli/Options.java b/src/main/java/org/apache/commons/cli/Options.java index 44cede28..f4ea07f7 100644 --- a/src/main/java/org/apache/commons/cli/Options.java +++ b/src/main/java/org/apache/commons/cli/Options.java @@ -138,6 +138,10 @@ public class Options implements Serializable { /** * Adds the specified option group. + * <p> + * An Option cannot be required if it is in an {@link OptionGroup}, either the group is required or nothing is required. This means that {@link Option} in + * the given group are set to optional. + * </p> * * @param group the OptionGroup that is to be added. * @return the resulting Options instance.
