[forge-users] @Option explanations please

forge-users at lists.jboss.org forge-users at lists.jboss.org
Mon Nov 3 17:51:57 EST 2014


I'm currently writing an article about Forge addons.
I'm beginning to write an addon, with @Command to start slowly and get the reader hooked.

I'm a bit puzzled with the behaviour of @Option .
Attribute "value" is mandatory, OK but if I define a value, it is not displayed. Why ??
The defaultValue has to be defined so it is displayed.

What are value and defaultValue for ?
How do they interact together ?

About the 'type' attribute. Is there other types than String supported ? 
Integer and Long seem not to be recognized (or enforced).

Thank you 


Posted by forums
Original post: https://developer.jboss.org/message/908979#908979

More information about the forge-users mailing list