Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 92827 invoked from network); 11 Jan 2011 17:06:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2011 17:06:10 -0000 Received: (qmail 83936 invoked by uid 500); 11 Jan 2011 17:06:10 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 83891 invoked by uid 500); 11 Jan 2011 17:06:10 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 83883 invoked by uid 99); 11 Jan 2011 17:06:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jan 2011 17:06:10 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jan 2011 17:06:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0BH5kQU008335 for ; Tue, 11 Jan 2011 17:05:46 GMT Message-ID: <31532279.286001294765546789.JavaMail.jira@thor> Date: Tue, 11 Jan 2011 12:05:46 -0500 (EST) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Subject: [jira] Updated: (FELIX-2536) Gogo Shell should export org.apache.felix.gogo.options package MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-2536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard S. Hall updated FELIX-2536: ----------------------------------- Fix Version/s: (was: gogo.runtime-0.8.0) gogo.shell-0.10.0 > Gogo Shell should export org.apache.felix.gogo.options package > -------------------------------------------------------------- > > Key: FELIX-2536 > URL: https://issues.apache.org/jira/browse/FELIX-2536 > Project: Felix > Issue Type: Improvement > Components: Gogo Shell > Reporter: David Savage > Priority: Minor > Fix For: gogo.shell-0.10.0 > > > The Gogo shell bundle includes a helpful utility class to handle Options parsing in the gogo environment. > org.apache.felix.gogo.options.Options > final String[] usage = { > "test - test Options usage", > " text before Usage: is displayed when usage() is called and no error has occurred.", > " so can be used as a simple help message.", > "", > "Usage: testOptions [OPTION]... PATTERN [FILES]...", > " Output control: arbitary non-option text can be included.", > " -? --help show help", > " -c --count=COUNT show COUNT lines", > " -h --no-filename suppress the prefixing filename on output", > " -q --quiet, --silent suppress all normal output", > " --binary-files=TYPE assume that binary files are TYPE", > " TYPE is 'binary', 'text', or 'without-match'", > " -I equivalent to --binary-files=without-match", > " -d --directories=ACTION how to handle directories (default=skip)", > " ACTION is 'read', 'recurse', or 'skip'", > " -D --devices=ACTION how to handle devices, FIFOs and sockets", > " ACTION is 'read' or 'skip'", > " -R, -r --recursive equivalent to --directories=recurse" }; > Option opt = Options.compile(usage).parse(args); > if (opt.isSet("help")) { > opt.usage(); // includes text before Usage: > return; > } > if (opt.args().size() == 0) > throw opt.usageError("PATTERN not specified"); > System.out.println(opt); > if (opt.isSet("count")) > System.out.println("count = " + opt.getNumber("count")); > System.out.println("--directories specified: " + opt.isSet("directories")); > System.out.println("directories=" + opt.get("directories")); > However the package containing this class is not exported from this bundle so it cannot be used by client code -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.