Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 80890 invoked from network); 30 May 2009 18:31:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 May 2009 18:31:10 -0000 Received: (qmail 25628 invoked by uid 500); 30 May 2009 18:31:22 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 25499 invoked by uid 500); 30 May 2009 18:31:22 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 25489 invoked by uid 99); 30 May 2009 18:31:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2009 18:31:22 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.27.42.3] (HELO smtp3-g21.free.fr) (212.27.42.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2009 18:31:13 +0000 Received: from smtp3-g21.free.fr (localhost [127.0.0.1]) by smtp3-g21.free.fr (Postfix) with ESMTP id B645E8180A6 for ; Sat, 30 May 2009 20:30:47 +0200 (CEST) Received: from [192.168.0.10] (mar75-7-82-247-19-29.fbx.proxad.net [82.247.19.29]) by smtp3-g21.free.fr (Postfix) with ESMTP id CAD1A8180BF for ; Sat, 30 May 2009 20:30:44 +0200 (CEST) Message-ID: <4A217B55.1050501@apache.org> Date: Sat, 30 May 2009 20:30:45 +0200 From: Emmanuel Bourg User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Commons Developers List Subject: Re: [cli] New Parser available References: <4A213F12.1060401@apache.org> <1243701181.17656.395.camel@balin> In-Reply-To: <1243701181.17656.395.camel@balin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Russel Winder a �crit : >> It implements the features of the other parsers and more: >> - partial matching for the long options (-ver instead of -version) > > What about -ver being -v -e -r ? The partial matching of a long option has the priority over the decomposition of the short options. If you have the following options: -v,--verbose -e -r,--recursive then: 1. -ver will be parsed as -v (partial matching of 'verbose') 2. -rev will be parsed as -r -e -v (decomposition) I wonder if I should add some settings to control the behavior of the parser. For example, to disable the decomposition of the short options, or to disable the partial matching of the long options starting with a single dash (i.e --ver would still stand for --verbose, but not -ver). Emmanuel Bourg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org