Skip to content

Commit

Permalink
[#511] add link to ticket in source code
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Nov 17, 2019
1 parent f013349 commit 3f9ad80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/picocli/CommandLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -8068,9 +8068,10 @@ private OptionSpec(Builder builder) {
}
if (toString() == null) { toString = "option " + longestName(); }

// if (arity().max == 0 && !(isBoolean(type()) || (isMultiValue() && isBoolean(auxiliaryTypes()[0])))) {
// throw new InitializationException("Option " + longestName() + " is not a boolean so should not be defined with arity=" + arity());
// }
// https://github.com/remkop/picocli/issues/511
//if (arity().max == 0 && !(isBoolean(type()) || (isMultiValue() && isBoolean(auxiliaryTypes()[0])))) {
// throw new InitializationException("Option " + longestName() + " is not a boolean so should not be defined with arity=" + arity());
//}
}

/** Returns a new Builder initialized with the attributes from this {@code OptionSpec}. Calling {@code build} immediately will return a copy of this {@code OptionSpec}.
Expand Down

0 comments on commit 3f9ad80

Please sign in to comment.