Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 23682 invoked from network); 26 May 2009 17:53:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 May 2009 17:53:56 -0000 Received: (qmail 20801 invoked by uid 500); 26 May 2009 17:54:08 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 20695 invoked by uid 500); 26 May 2009 17:54:08 -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 20558 invoked by uid 99); 26 May 2009 17:54:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2009 17:54:07 +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; Tue, 26 May 2009 17:54:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B2C3E234C1EF for ; Tue, 26 May 2009 10:53:45 -0700 (PDT) Message-ID: <1695459759.1243360425729.JavaMail.jira@brutus> Date: Tue, 26 May 2009 10:53:45 -0700 (PDT) From: "Marius Scurtescu (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CLI-180) arguments with spaces parsed as individual arguments In-Reply-To: <66292880.1243293465545.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-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713158#action_12713158 ] Marius Scurtescu commented on CLI-180: -------------------------------------- Yes, it was in a shell script, and the issue is with the script itself. Sorry about that, and thanks for the hint. Not an issue, not sure if I can close it myself. > arguments with spaces parsed as individual arguments > ---------------------------------------------------- > > Key: CLI-180 > URL: https://issues.apache.org/jira/browse/CLI-180 > Project: Commons CLI > Issue Type: Bug > Components: Parser > Affects Versions: 1.1, 1.2 > Reporter: Marius Scurtescu > > If an argument contains a space then the part after the space is treated as another argument and you end up with an invalid argument error. > Tried many things to escape the space: double quotes around the argument value, backslash before the space, short and long forms, etc. Nothing is working. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.