Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 51843 invoked from network); 7 Apr 2003 09:14:34 -0000 Received: from a17-250-248-87.apple.com (HELO smtpout.mac.com) (17.250.248.87) by daedalus.apache.org with SMTP; 7 Apr 2003 09:14:34 -0000 Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h379EkGm029612 for ; Mon, 7 Apr 2003 02:14:47 -0700 (PDT) Received: from [192.168.0.181] ([193.120.208.97]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id HCYV0M00.FEK; Mon, 7 Apr 2003 02:14:46 -0700 Subject: Re: AW: Use of GnuParser From: John Keyes To: "\"Menke" =?ISO-8859-1?Q?J=F6rg=2C?= "IT2\"" Cc: "'Jakarta Commons Users List'" In-Reply-To: <4414B2675206F545A43996DC85EDFE0F017F92D2@cvx00ahyha.hyha.detemobil.de> References: <4414B2675206F545A43996DC85EDFE0F017F92D2@cvx00ahyha.hyha.detemobil.de> Content-Type: text/plain; charset=UTF-8 Organization: Message-Id: <1049706879.1042.1.camel@oasis.capeclear.ie> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.3 Date: 07 Apr 2003 10:14:39 +0100 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'll confirm this later (I will get the new stuff checked in soon, a bit busy at the mo). I think that this should be resolved, I'll keep you posted. -John K On Mon, 2003-04-07 at 09:49, "Menke Jörg, IT2" wrote: > Hello Achim, > > when I recently had the need for a command line parser I > > discovered the > > CLI library. For my application the GnuParser seemed to > > provide the best > > match. I ran into a small problem, though. Among other > > things, my application > > needs to support two options; -T and -O, both requiring an argument: > > sampleAppl -T -O > > > > Unfortunately, "O" is also a valid value for arg1: > > sampleAppl -T O > > > > GnuParser interpreted in this commandline the "O" as option > > "-O" not as > > value for "-T". This caused a MissingArgumentException to be thrown. > I have exactly the same here (See thread "Inconsistency in Options.hasOption(String)", for example). > This should work normally, but - till now - does not (at least with the CVS-Snapshot I tried last week). > > But maybe John has something in the pipe for that problem now... :) > > cu, Jörg -- John Keyes