karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james strachan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (KARAF-155) optional @Argument values (and I guess @Option values) can have default values which could be displayed in the help screen by reflecting into the value and finding non-zero/null values
Date Tue, 24 Aug 2010 10:40:16 GMT

     [ https://issues.apache.org/jira/browse/KARAF-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

james strachan updated KARAF-155:
---------------------------------

    Priority: Trivial  (was: Major)

> optional @Argument values (and I guess @Option values) can have default values which
could be displayed in the help screen by reflecting into the value and finding non-zero/null
values
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-155
>                 URL: https://issues.apache.org/jira/browse/KARAF-155
>             Project: Karaf
>          Issue Type: Improvement
>          Components: console
>            Reporter: james strachan
>            Priority: Trivial
>             Fix For: 2.2.0
>
>
> For example for
> {code}
> class MyCommand extends Action {
>   @Argument(required = false, description = "whatnot")
>   String foo = "someDefault";
>    ...
> }
> {code}
> when printing the help for "foo" argument we could mention the default value is "someDefault"
in the help screen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message