Fix erroneous assert.

This commit is contained in:
Xavier Ducrohet
2009-07-22 14:08:07 -07:00
parent ada1833325
commit 6baf93c2c0

View File

@@ -766,7 +766,7 @@ public class CommandLineProcessor {
String directObject,
String shortName, String longName,
String description, Object defaultValue) {
assert(mandatory || mode == Mode.BOOLEAN); // a boolean mode cannot be mandatory
assert(!(mandatory && mode == Mode.BOOLEAN)); // a boolean mode cannot be mandatory
if (directObject == null) {
directObject = NO_VERB_OBJECT;