Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 87163 invoked from network); 2 Jun 2009 09:47:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 09:47:20 -0000 Received: (qmail 11958 invoked by uid 500); 2 Jun 2009 09:47:31 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 11842 invoked by uid 500); 2 Jun 2009 09:47:31 -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 11832 invoked by uid 99); 2 Jun 2009 09:47:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 09:47:31 +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, 02 Jun 2009 09:47:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54CB1234C004 for ; Tue, 2 Jun 2009 02:47:07 -0700 (PDT) Message-ID: <1171992006.1243936027333.JavaMail.jira@brutus> Date: Tue, 2 Jun 2009 02:47:07 -0700 (PDT) From: "Emmanuel Bourg (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CLI-179) Needs "standalone" options that can be used even if required options are not set In-Reply-To: <457440463.1241108550347.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLI-179?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1271544= 5#action_12715445 ]=20 Emmanuel Bourg commented on CLI-179: ------------------------------------ Actually there is a solution with the current API. You can create a group w= ith --version, --help and your options, and mark it as required. The parser= will check if one of the options is present. > Needs "standalone" options that can be used even if required options are = not set > -------------------------------------------------------------------------= ------- > > Key: CLI-179 > URL: https://issues.apache.org/jira/browse/CLI-179 > Project: Commons CLI > Issue Type: Improvement > Components: Parser > Affects Versions: 1.2 > Reporter: Jo=C3=ABl Royer > Fix For: 1.4 > > > it is currently impossible to have options like "help" or "version" if we= also have some required options. The parsing results in an error "Missing = parameters". > But for an "help" or "version" option, it would be usefull to display the= wanted information, even if required options are not set. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.