Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 59634 invoked from network); 13 Jan 2008 19:35:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jan 2008 19:35:56 -0000 Received: (qmail 50576 invoked by uid 500); 13 Jan 2008 19:35:44 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 50524 invoked by uid 500); 13 Jan 2008 19:35:44 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 50513 invoked by uid 99); 13 Jan 2008 19:35:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jan 2008 11:35:44 -0800 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; Sun, 13 Jan 2008 19:35:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DDE7571420B for ; Sun, 13 Jan 2008 11:35:33 -0800 (PST) Message-ID: <19883306.1200252933876.JavaMail.jira@brutus> Date: Sun, 13 Jan 2008 11:35:33 -0800 (PST) From: "Jason Warner (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GSHELL-66) Auto-generate cli syntax/usage string when displaying --help In-Reply-To: <26540228.1195012903012.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/GSHELL-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Warner updated GSHELL-66: ------------------------------- Attachment: GShell-66.patch I added some code to printUsage to generate the appropriate lists and syntax command only if those pieces were present. I'm not attached to the wording or format, so if you feel like tweaking those go right ahead. > Auto-generate cli syntax/usage string when displaying --help > ------------------------------------------------------------ > > Key: GSHELL-66 > URL: https://issues.apache.org/jira/browse/GSHELL-66 > Project: GShell > Issue Type: Improvement > Security Level: public(Regular issues) > Components: Support - CLP > Affects Versions: 1.0-alpha-1 > Reporter: Jason Dillon > Assignee: Jason Warner > Priority: Minor > Fix For: 1.0-alpha-2 > > Attachments: GShell-66.patch > > > When generating a commands --help, the syntax/usage should be auto-generated. > For example take the {{help}} command's {{--help}}: > {noformat} > jason@Bliss.local:/> help --help > help > -- > VAL Command name > -h (--help) Display this help message > {noformat} > Ideally this should be rendered as: > {noformat} > jason@Bliss.local:/> help --help > syntax: help [options] [COMMAND] > arguments: > COMMAND Command name > options: > -h (--help) Display this help message > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.