What does it mean when optionalArg(true) is called for building an option?

As per my understanding, it may or may not take an argument. But in this case, 
getOptionValue is giving null even when a value is given after the option

For example, if args = {"-foo","value"} and option = 
Option.builder().option("f").longOpt("foo").optionalArg(true).build(). In this 
case, getOptionValue is returning null. But, as per my understanding, it should 
return value

Thank you,
Sruteesh Kumar Paramata

Reply via email to