lexicalscope/jewelcli — Issue #3: boolean options are not working
Author: houyunf
Created: 2011-12-30 10:06:34+00:00
State: open

Any boolean (or Boolean) options are not working, it will always return true. The following code will not work.

@Option
boolean getOption1()

@Option(defaultValue="false")
boolean getOption2()

If I did not pass any argument, both methods will return true. Your test case(http://jewelcli.sourceforge.net/xref-test/uk/co/flamingpenguin/jewel/cli/examples/TestPrimitiveExample.html) only tests when the boolean option arguments are present, however, there should also be test cases testing if no arguments are passed.