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 C90F2C6D5 for ; Wed, 3 Jul 2013 03:10:24 +0000 (UTC) Received: (qmail 49059 invoked by uid 500); 3 Jul 2013 03:10:22 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 48954 invoked by uid 500); 3 Jul 2013 03:10:22 -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 48941 invoked by uid 99); 3 Jul 2013 03:10:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 03:10:20 +0000 Date: Wed, 3 Jul 2013 03:10:20 +0000 (UTC) From: "BELUGA BEHR (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLI-239) Patch: Required Options Not Using Generics 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-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] BELUGA BEHR updated CLI-239: ---------------------------- Attachment: OptionGroup.java.patch > Patch: Required Options Not Using Generics > ------------------------------------------ > > Key: CLI-239 > URL: https://issues.apache.org/jira/browse/CLI-239 > Project: Commons CLI > Issue Type: Improvement > Reporter: BELUGA BEHR > Priority: Trivial > Attachments: OptionGroup.java.patch, Options.java.patch > > > The way in which required options were being handled involved a list blended with Options and Strings. I have simplified the process and now the list only contains Options. > With this patch, OptionGroup now enforces that all Option objects added to it match its own "required" level. > The unit tests are broken with these changes though. -- 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