Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 74103 invoked from network); 5 Jun 2007 02:35:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2007 02:35:51 -0000 Received: (qmail 16938 invoked by uid 500); 5 Jun 2007 02:35:53 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 16400 invoked by uid 500); 5 Jun 2007 02:35:50 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 16384 invoked by uid 99); 5 Jun 2007 02:35:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 19:35:50 -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; Mon, 04 Jun 2007 19:35:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 14483714186 for ; Mon, 4 Jun 2007 19:35:26 -0700 (PDT) Message-ID: <31941513.1181010925977.JavaMail.jira@brutus> Date: Mon, 4 Jun 2007 19:35:25 -0700 (PDT) From: "Brian Egge (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Updated: (CLI-132) MissingOptionException should contain a useful error message In-Reply-To: <3557875.1181010685989.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-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brian Egge updated CLI-132: --------------------------- Description: Most exception message contain a useful message string like "Missing argument for option:". The MissingOptionException contains only the missing options. Adding a message to the exception would make it easier to catch a ParseException and display the getMessage() string. (was: The help formatter auto usage returns the options in a somewhat random order. This is because the options are inserted in a HashMap, and then a copy of the collection is returned with the getOptions() method. The getOptions method should return the options in the order they were added, or in a sorted order.) > MissingOptionException should contain a useful error message > ------------------------------------------------------------ > > Key: CLI-132 > URL: https://issues.apache.org/jira/browse/CLI-132 > Project: Commons CLI > Issue Type: Improvement > Components: CLI-1.x > Affects Versions: 1.0, 1.1 > Reporter: Brian Egge > Priority: Minor > Fix For: 1.1 > > Attachments: bug132.patch > > > Most exception message contain a useful message string like "Missing argument for option:". The MissingOptionException contains only the missing options. Adding a message to the exception would make it easier to catch a ParseException and display the getMessage() string. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org