-type argument value does not show up
Status: Planning
Brought to you by:
laszewsk
I am creating an option in a CLI this way:
addSimpleParameterOption("cr", "create", new String[] { "f", "type" }, "Create a new set");
and trying to get the value:
line.getOptionValue("type")
but I just get null. More interesting is that I still get the values of the other arguments/options. Seems like I cannot add "type" argument to this option or I did smth really stupid that I cannot find out :) .
The source code is here:
http://cyberaide.svn.sourceforge.net/viewvc/cyberaide/gridshell/trunk/src/main/java/org/cyberaide/core/SetCLI.java?revision=1283&view=markup
Logged In: YES
user_id=2107751
Originator: YES
I also cannot get some of the other arguments as well..
Logged In: YES
user_id=2107751
Originator: YES
I was able to "workaround" this, by adding every single option & argument with an addSimpleParameterOption (using Fugang's help).
However, is this the way it is supposed to be?