Skip to content

Commit ffce848

Browse files
committed
Javadoc
1 parent 57a03e6 commit ffce848

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/org/apache/commons/cli/Options.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ public Options addOption(final String opt, final String longOpt, final boolean h
138138

139139
/**
140140
* Adds the specified option group.
141+
* <p>
142+
* 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
143+
* the given group are set to optional.
144+
* </p>
141145
*
142146
* @param group the OptionGroup that is to be added.
143147
* @return the resulting Options instance.

0 commit comments

Comments
 (0)