Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 53531 invoked from network); 27 May 2009 15:06:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 May 2009 15:06:58 -0000 Received: (qmail 47648 invoked by uid 500); 27 May 2009 15:07:10 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 47537 invoked by uid 500); 27 May 2009 15:07:10 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 47527 invoked by uid 99); 27 May 2009 15:07:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 15:07:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 15:07:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C019129A0015 for ; Wed, 27 May 2009 08:06:45 -0700 (PDT) Message-ID: <400224365.1243436805786.JavaMail.jira@brutus> Date: Wed, 27 May 2009 08:06:45 -0700 (PDT) From: "Jim Jagielski (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CLI-181) Unified parser In-Reply-To: <1321360942.1243412925538.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLI-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713602#action_12713602 ] Jim Jagielski commented on CLI-181: ----------------------------------- I was thinking about adding a sort of "format string" which defines the type of options the user wants to support; eg: "-a foo --apple=banana -flag" CLI then determines the option formats that need to be supported via scanning that string and then uses those aspects of the parser. So by folding all 3 parsers into 1 super parser, this would be easier. Of course, anything that removes the need for end-users to have to worry about "which parser to use" is goodness ;) > Unified parser > -------------- > > Key: CLI-181 > URL: https://issues.apache.org/jira/browse/CLI-181 > Project: Commons CLI > Issue Type: Improvement > Components: Parser > Reporter: Emmanuel Bourg > Fix For: 1.3 > > > The 3 parsers available in the API create an unnecessary complexity for the users and for the developers maintaining the code. I suggest deprecating them in favor of a unified parser supporting the features of the others. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.