@@ -114,21 +114,7 @@ private String readOptionName(String token) {
114114 return token .substring (0 , token .indexOf ('=' ));
115115 }
116116
117- /**
118- * Returns the arguments of the given option.
119- * If the option was not present on the command line,
120- * an empty stream is returned. If the option is not
121- * repeatable, the stream will contain exactly one element.
122- * For nullary options, an empty stream
123- * represents absence, and any nonempty stream represents presence
124- * of the option.
125- *
126- * <p>This method should be not be invoked before {@link #parse(List)}
127- * was invoked.
128- *
129- * @param option the option key
130- * @return a stream of strings
131- */
117+ @ Override
132118 public final Stream <String > option (T option ) {
133119 OptionState optionState = optionStates .get (option );
134120 if (optionState == null ) {
@@ -137,16 +123,7 @@ public final Stream<String> option(T option) {
137123 return optionState .stream ();
138124 }
139125
140- /**
141- * Returns the value of the positional parameter at the given position,
142- * if any.
143- *
144- * <p>This method should be not be invoked before {@link #parse(List)}
145- * was invoked.
146- *
147- * @param index the parameter position
148- * @return an optional string
149- */
126+ @ Override
150127 public final Optional <String > param (int index ) {
151128 if (index < 0 || index >= params .length ) {
152129 return Optional .empty ();
0 commit comments