Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A31C9D342 for ; Tue, 30 Oct 2012 15:04:14 +0000 (UTC) Received: (qmail 62557 invoked by uid 500); 30 Oct 2012 15:04:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 62239 invoked by uid 500); 30 Oct 2012 15:04:13 -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 62195 invoked by uid 99); 30 Oct 2012 15:04:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 15:04:12 +0000 Date: Tue, 30 Oct 2012 15:04:12 +0000 (UTC) From: "Emmanuel Bourg (JIRA)" To: issues@commons.apache.org Message-ID: <288338570.44800.1351609452317.JavaMail.jiratomcat@arcas> In-Reply-To: <150973389.48575.1306500887509.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CLI-219) Allow to specify options with a single argument that will be split into multiple arguments MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLI-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Bourg updated CLI-219: ------------------------------- Fix Version/s: (was: 1.3) 1.4 > Allow to specify options with a single argument that will be split into multiple arguments > ------------------------------------------------------------------------------------------ > > Key: CLI-219 > URL: https://issues.apache.org/jira/browse/CLI-219 > Project: Commons CLI > Issue Type: New Feature > Components: CLI-1.x > Affects Versions: 1.2 > Reporter: Gilles > Labels: features > Fix For: 1.4 > > Attachments: svn_diff.txt > > > I've explained the issue in that thread: > http://www.mail-archive.com/user@commons.apache.org/msg06483.html > As hinted there, a solution might be to allow that the (single) argument of an "Option" (cf. "hasArg()") be split according to a user-defined regexp pattern. If given a split pattern, the code would convert a single-arg "Option" into a multiple-args one (where the arguments are the result of splitting the single-arg string with the pattern). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira