Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 78950 invoked from network); 2 Aug 2002 13:25:29 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Aug 2002 13:25:29 -0000 Received: (qmail 25047 invoked by uid 97); 2 Aug 2002 13:25:47 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 24976 invoked by uid 97); 2 Aug 2002 13:25:45 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 24913 invoked by uid 98); 2 Aug 2002 13:25:42 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Subject: RE: [CLI] Feature requests and submissions From: John Keyes To: bloritsch@apache.org Cc: "'Jakarta Commons Developers List'" In-Reply-To: <002701c23a24$845853d0$ac00a8c0@Gabriel> References: <002701c23a24$845853d0$ac00a8c0@Gabriel> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8.99 Date: 02 Aug 2002 14:22:09 +0100 Message-Id: <1028294531.5945.126.camel@oasis> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 2002-08-02 at 14:00, Berin Loritsch wrote: > > From: John Keyes [mailto:jbjk@mac.com] > > > > I have added the array method, as someone may prefer the > > array approach to the Collections one. > > > > I has also added the capability to use the switch to process > > the options (this is only applicable for character options). > > > > And I have added the ability to specify if an option should > > have a finite number of arguments. > > > > None of the above are commited, I hope to get it tided up but > > it might have to wait until this time tomorrow to be committed. > > > > Thanks for the detailed feature requests Berin. > > > Thank you for being so quick in putting them in. I do have one > question left: > > does Commons CLI support the "=" delimiter? You know, for the > variable definition type of options: -Dvar=myval > type of options? Or would this be -Dvar myval? Well there is no built in support for parsing the value but e.g. parse -Dvar=myval String val = line.getOption( "D" ); // val == "var=myval" What sort of API would be looking for to provide built in support for this? It would probably only be an optional static helper function e.g. String property = Helper.getKey( val ); String value = Helper.getValue( val ); -John K > > Everything else has been answered. > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: