Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 86167 invoked from network); 27 Oct 2007 18:36:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2007 18:36:15 -0000 Received: (qmail 29972 invoked by uid 500); 27 Oct 2007 18:36:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 29917 invoked by uid 500); 27 Oct 2007 18:36:01 -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 29908 invoked by uid 99); 27 Oct 2007 18:36:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Oct 2007 11:36:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Oct 2007 18:36:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D632E714254 for ; Sat, 27 Oct 2007 11:35:50 -0700 (PDT) Message-ID: <14263681.1193510150874.JavaMail.jira@brutus> Date: Sat, 27 Oct 2007 11:35:50 -0700 (PDT) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (CLI-148) arguments are interpreted as options In-Reply-To: <9746333.1189720864524.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLI-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henri Yandell updated CLI-148: ------------------------------ Description: The command-line parser interprets arguments to options as options if they match existing options. Example: Assume -a arg -b arg -a b -b a was fixed in CLI-71, but -a "-b" returns Unable to parse command line: no argument for:a -a "-c" is OK if "-c" is not defined as an option. The option in my case was "-password" and their password happened to match one of the options. was: related to https://issues.apache.org/jira/browse/CLI-71 The command-line parser interprets arguments to options as options if they match existing options. Example: Assume -a arg -b arg -a b -b a was fixed in CLI-71, but -a "-b" returns Unable to parse command line: no argument for:a -a "-c" is OK if "-c" is not defined as an option. The option in my case was "-password" and their password happened to match one of the options. > arguments are interpreted as options > ------------------------------------ > > Key: CLI-148 > URL: https://issues.apache.org/jira/browse/CLI-148 > Project: Commons CLI > Issue Type: Bug > Components: CLI-1.x > Affects Versions: 1.1 > Environment: Debian stable x86 with Sun JDK 1.6.0_02 > Reporter: Matt Ray > Priority: Minor > Attachments: BugCLI138Test.java > > > The command-line parser interprets arguments to options as options if they match existing options. Example: > Assume > -a arg > -b arg > -a b -b a was fixed in CLI-71, but > -a "-b" returns > Unable to parse command line: no argument for:a > -a "-c" is OK if "-c" is not defined as an option. > The option in my case was "-password" and their password happened to match one of the options. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.