Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 12270 invoked from network); 3 Jun 2008 10:42:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 10:42:40 -0000 Received: (qmail 11715 invoked by uid 500); 3 Jun 2008 10:42:43 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 11189 invoked by uid 500); 3 Jun 2008 10:42:41 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 11178 invoked by uid 99); 3 Jun 2008 10:42:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 03:42:41 -0700 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.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 10:41:53 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id BD783D2EA for ; Tue, 3 Jun 2008 10:42:15 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: dev@commons.apache.org Date: Tue, 03 Jun 2008 10:42:15 -0000 Message-ID: <20080603104215.11419.28834@eos.apache.org> Subject: [Commons Wiki] Update of "CLI2/sampleApplication" by Andrew Oxenburgh X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Commons Wiki" for change notification. The following page has been changed by Andrew Oxenburgh: http://wiki.apache.org/commons/CLI2/sampleApplication ------------------------------------------------------------------------------ 3. call command with long option (eg {{{calledCommand --length}}}) which should display "found '-l'" + 4. call command with invalid long option (eg {{{calledCommand --invalid}}}) which should display some error. + + 5. call command with invalid short option (eg {{{calledCommand -i}}}) which should display some error. + I have included the source for both the application and the unit tests as attachements here. inline:CLIDemoWithOneOptionNoArgument.java --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org