commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sagun shakya <Sagun.Sha...@Sun.COM>
Subject why is my withArgName argument being overwritten
Date Thu, 26 Mar 2009 01:38:51 GMT

I have an Option created as:
Option fooOption = OptionBuilder.withDescription("add foo")
When I call |*printUsage <,%20int,%20java.lang.String,%20org.apache.commons.cli.Options%29

 >*(PrintWriter < 
 > pw,
          int width,
          String < 
 > app,
          Options <

 > options)|

by passing in fooOption. The usage for the cli only outputs
usage: mytestCli [-baz <bar>]

How do I get to print both "foo" and "bar"


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message