You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jason Dillon (JIRA)" <ji...@apache.org> on 2007/11/14 05:01:43 UTC

[jira] Created: (GSHELL-66) Auto-generate cli syntax/usage string when displaying --help

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
            Priority: Minor
             Fix For: 1.0-alpha-1


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.


[jira] Updated: (GSHELL-66) Auto-generate cli syntax/usage string when displaying --help

Posted by "Jason Warner (JIRA)" <ji...@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.


[jira] Assigned: (GSHELL-66) Auto-generate cli syntax/usage string when displaying --help

Posted by "Erik B. Craig (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik B. Craig reassigned GSHELL-66:
-----------------------------------

    Assignee: Erik B. Craig

> 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: Erik B. Craig
>            Priority: Minor
>             Fix For: 1.0-alpha-2
>
>
> 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.


[jira] Updated: (GSHELL-66) Auto-generate cli syntax/usage string when displaying --help

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Dillon updated GSHELL-66:
-------------------------------

    Fix Version/s:     (was: 1.0-alpha-1)
                   1.0-alpha-2

> 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
>            Priority: Minor
>             Fix For: 1.0-alpha-2
>
>
> 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.


[jira] Closed: (GSHELL-66) Auto-generate cli syntax/usage string when displaying --help

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Dillon closed GSHELL-66.
------------------------------

    Resolution: Fixed

Applied, thx Jason

> 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.


[jira] Assigned: (GSHELL-66) Auto-generate cli syntax/usage string when displaying --help

Posted by "Erik B. Craig (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik B. Craig reassigned GSHELL-66:
-----------------------------------

    Assignee: Jason Warner  (was: Erik B. Craig)

Passing off to jason.

> 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
>
>
> 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.