We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a78cff6 commit d6c2e6bCopy full SHA for d6c2e6b
1 file changed
src/main/java/org/apache/commons/cli/Option.java
@@ -257,8 +257,8 @@ public Builder option(final String option) throws IllegalArgumentException {
257
* @return this builder.
258
*/
259
public Builder optionalArg(final boolean optionalArg) {
260
- if (optionalArg && this.argCount == UNINITIALIZED) {
261
- this.argCount = 1;
+ if (optionalArg && argCount == UNINITIALIZED) {
+ argCount = 1;
262
}
263
this.optionalArg = optionalArg;
264
return this;
0 commit comments