Fix erroneous assert.
This commit is contained in:
@@ -766,7 +766,7 @@ public class CommandLineProcessor {
|
|||||||
String directObject,
|
String directObject,
|
||||||
String shortName, String longName,
|
String shortName, String longName,
|
||||||
String description, Object defaultValue) {
|
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) {
|
if (directObject == null) {
|
||||||
directObject = NO_VERB_OBJECT;
|
directObject = NO_VERB_OBJECT;
|
||||||
|
|||||||
Reference in New Issue
Block a user