Menu

#78 -type argument value does not show up

open
gridshell (13)
5
2008-08-08
2008-08-08
No

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

Discussion

  • Nurzhan Kirbassov

    Logged In: YES
    user_id=2107751
    Originator: YES

    I also cannot get some of the other arguments as well..

     
  • Nurzhan Kirbassov

    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?

     

Log in to post a comment.

MongoDB Logo MongoDB