Re: CLI library question

2002-08-28 Thread John Keyes
Hi Parag, Do you have some sample code for this. I will give it a wizz in a mo and see what happens. I had identified this as a possible problem area but I haven't had a chance to address it yet. Cheers, -John K On Wednesday, August 28, 2002, at 05:59 , Parag Thakur wrote: hi! I have a

Re: CLI: is there a release of this?

2002-10-17 Thread John Keyes
The 1.0 release is nearly ready. Stay tuned... -John K On Wed, 2002-10-16 at 21:42, Phil Surette wrote: I see that CLI is listed in the commons components repository but it does not appear in the release download page nor on the nightly build stage. Is this an oversight? -- To

Re: Option.hasArgName() has a bug.

2002-10-19 Thread John Keyes
pay attention to. -- To unsubscribe, e-mail: mailto:commons-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:commons-user-help;jakarta.apache.org -- John Keyes [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:commons-user-unsubscribe;jakarta.apache.org

Re: Mandatory OptionGroup

2002-10-22 Thread John Keyes
Soysal -- To unsubscribe, e-mail: mailto:commons-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:commons-user-help;jakarta.apache.org -- John Keyes [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:commons-user-unsubscribe;jakarta.apache.org For additional

Re: CLI OptionGroup question

2002-10-25 Thread John Keyes
in the args a MissingOptionException will be thrown. I need to tidy up the exception message for it but it should give you a start into it. Cheers, -John K On Thu, 2002-10-24 at 08:52, John Keyes wrote: Joe, This request was made a couple of days back. I am trying to 1.0 release out

Re: problem wth CLI

2002-12-12 Thread John Keyes
] -- John Keyes [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: [CLI] Is CLI alive?

2003-01-06 Thread John Keyes
Dmitry, I apologise for not spotting that bug. CLI is alive and I will see if I can fix that bug, it appears to be an error in the flatten method. Thanks, -John K On Sunday, Jan 5, 2003, at 12:27 Europe/Dublin, Dmitry Macsema wrote: I've submitted a bug

Re: [CLI] no argument for option-bug? (Bug 15046)

2003-01-15 Thread John Keyes
anyone have a fix for this in the backhand? Thanks for the very handy commons-cli-package anyway. This is a _really usefull_ thing! Thanks again! regards, Jörg -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- John Keyes

Re: AW: [CLI] no argument for option-bug? (Bug 15046)

2003-01-16 Thread John Keyes
Hi Jörg, PS: IMHO the bug report could be closed, or at least someone should add a comment that that issue is solved in CVS... Thats done now, the bug has been marked as fixed. -John K -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Re: CLI: Best way to parse multiple arguments of same type?

2003-01-21 Thread John Keyes
Hi Willie, public static void main(String[] args) { Options options = new Options(); Option run = OptionBuilder.hasArg() .withArgName(files) .withValueSeparator() .withDescription(Run a process)

Re: [CLI] RFE: when hasArg() is not specified in optiondefinition...

2003-02-06 Thread John Keyes
and processing stopped. -John K On Thu, 2003-02-06 at 02:05, Dmitry Macsema wrote: ...and when argument for the option is specified at runtime, an exception should be thrown. -- John Keyes [EMAIL PROTECTED

Re: [CLI] Documentation issues

2003-02-10 Thread John Keyes
be line.getOptionValue not getValue Hope this proves useful. Pete Edwards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Keyes [EMAIL PROTECTED

Re: [CLI] RESEND: Inconsistency in Options.hasOption(String)

2003-02-15 Thread John Keyes
Hi Ringo, The behaviour you describe is incorrect. I have this on my todo list (sorry for not responding to your first mail). -John K On Friday, Feb 14, 2003, at 13:45 Europe/Dublin, [EMAIL PROTECTED] wrote: Hello, I think there is an inconsistency in the method Options.hasOption(String).

RE: [CLI] RESEND: Inconsistency in Options.hasOption(String)

2003-02-18 Thread John Keyes
] For additional commands, e-mail: [EMAIL PROTECTED] -- John Keyes [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: [CLI] RESEND: Inconsistency in Options.hasOption(String)

2003-02-18 Thread John Keyes
Hi Jörg snip/ IMHO it should throw an error in that case as a combination like that is far away from beeing user-friendly... But as user-friendlyness might be a personal thing you could do it as you said: take a hyphon or two to make it clear. But I personally would prefer the first

Re: Bug in the CLI HelpFormatter

2003-02-25 Thread John Keyes
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Keyes [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [CLI] How to do type checking?

2003-06-12 Thread John Keyes
Hi Bob, In CLI 1.0 the parameter was Object, so you would pass an instance e.g. new Integer(1); We are currently developing the next version and the parameter type has changed to Class. So an example usage is: Argument i = builder.withValueType(Integer.class).create(i); Integer svalue =

Re: CLI: I never get exception when parsing a command line

2003-10-20 Thread John Keyes
Hi Robert, Can you supply some test code for this? Thanks, -John K On Monday, Oct 20, 2003, at 23:11 Europe/Dublin, Augustyn, Robert non Unisys wrote: Hi, I was expecting that when a required option is missing from the command like an exception would be thrown but nothing like that. Same when

Re: [Logging] Using Commons Logging With JDK 1.1

2003-11-04 Thread John Keyes
Sam you're asking in the right place alright. One of the 'Logging' people should pick up on this soon and post a reply. -John K On 4 Nov 2003, at 15:57, Sam Berlin wrote: Is there perhaps another place I should be asking this question? Thanks, Sam Sam Berlin wrote: Helllo Everyone, I am

Re: [CLI] UnrecognizedOptionException on simple test

2003-12-11 Thread John Keyes
softeam [EMAIL PROTECTED] wrote: LAURENT Frederic SZSIC13 softeam wrote: John Keyes wrote: I don't see any obvious errors. Can you write the test in plain java and see if that works. If not then post the class here and I'll have a look at it. Sorry for the abruptness but I am busy

Re: [CLI] UnrecognizedOptionException on simple test

2003-12-12 Thread John Keyes
Yes I'll fix the docs soon. Thanks Frederic. -John K On 12 Dec 2003, at 09:18, LAURENT Frederic SZSIC13 softeam wrote: John Keyes wrote: Hi Frederic, Use the GnuParser instead of the PosixParser. That should do the trick. ok this works like a charm ! thanks Then can we consider

Re: [cli] status?

2003-12-17 Thread John Keyes
How stable are the v2 CLI APIs? We need to review them before giving a final status but the cli2 APIs are around 95% complete. There may be some minor changes but for the most part they are final. Can anyone (John?) give any hints as to scheduling? I've been very busy for the last month or so and

Re: questions in JBoss security

2004-02-12 Thread John Keyes
Hi Anju, You should post these questions to the JBoss User forum at: http://www.jboss.org/index.html?module=bb Cheers, -John K On 12 Feb 2004, at 15:31, Anjulatha Vellanki wrote: I went through the online manual - JBoss 2.4+ Documentation. I have questions in JBoss security. 1. What is the

Re: commons-cli support for subcommands?

2004-02-13 Thread John Keyes
I know that readers of this list are wondering if it will ever be released by there is support for subcommands in CLI 2 which is under (*active*) development. We'll announce when it is a candidate is available. -John K On 13 Feb 2004, at 03:07, Wallace, Hank wrote: I am just getting started

Re: commons-cli support for subcommands?

2004-02-13 Thread John Keyes
I know that readers of this list are wondering if it will ever be released by there is support for subcommands in CLI 2 which is under (*active*) development. We'll announce when it is a candidate is available. -John K On 13 Feb 2004, at 03:07, Wallace, Hank wrote: I am just getting started

Re: [CLI] Why do you use the different parsers

2004-03-18 Thread John Keyes
Holliday, Donald B. (LNG-CSP) wrote: I have read the usage documentation [1] and the javadoc. I can find no explanation of why you would choose one of the several parsers (BasicParser, GnuParser, PosixParser) provided with CLI 1.0. Assuming the BasicParser provides the least capabilities, what do

Re: [CLI] no short opt option

2004-03-22 Thread John Keyes
This should not be the case. Can you include some test code please. -John K Venkatesh Prasad Ranganath wrote: Hi, I tried to create an option that can be specified via a long-option and not by a short-option. The way I did it was created an Option object with null for the short option.

Re: [CLI] Current Status

2004-03-23 Thread John Keyes
(trying again - first reply seems to have been lost) Hi Simon, Check out the test cases, there is a specific one in there for cvs (org.apache.commons.cli2.apps.CvsTest). We're very sparse on documentation. -John K On 21 Mar 2004, at 19:40, Simon Raess wrote: hi I've been using commons-cli

Re: [CLI] Current Status

2004-03-23 Thread John Keyes
very busy at my day job and the amount of time I spend on CLI has been hampered. I need to talk to Rob and see what we can come up with. The code is pretty much all there, we just need to increase our code coverage and finalize the API. -John K Simon John Keyes wrote: (trying again - first

Re: [CLI] Collaboration

2005-10-07 Thread John Keyes
Alex, On 10/7/05, Alex [EMAIL PROTECTED] wrote: Hello, i have developed a new extension for CLI. It is like PatterOptionBuilder, but i have called XmlOptionBuilder, because it reads the Options from a Xml rather than a String pattern or hardcoded. My problem is that i don't know how can I

Re: [CLI] Maybe a bug?

2005-10-13 Thread John Keyes
Alex are you calling as: cmd -d /usr/bin , /etc (case A) or cmd -d /usr/bin,/etc (case B) The value separator is used only in the case of a single string token. In case A there are four tokens passed '-d' '/usr/bin' ',' and '/etc'. In case B there are only two tokens passed '-d' '/usr/bin,/etc'.

Re: [CLI] Collaboration

2005-10-13 Thread John Keyes
On 10/7/05, Alex [EMAIL PROTECTED] wrote: Im auto responding but i think that Argumetn is for example -name alex. So when you have a value, and option is only for exemple -help. Cause you don't have any argument. This is at least one difference from CLI1.0 Yes you are correct. The unit test