Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[osgi-users] Specifying required parameter in Gogo command

am trying to specify some required parameters in Gogo but I can't find a way to set absentValue to null (can't just not provide it as it is required).

This won't compile:
@Parameter(names="-ps") @Descriptor(PS_DESCR) String psName,

Example:
@Parameter(names="-ps", absentValue= "") @Descriptor(PS_DESCR) String psName,

results in:
-ps   ProjectSpace name [optional]

Where I want it not to show up as optional.

The code checks for null, otherwise it will add the "[optional]" tag.

Thanks
Alain


Back to the top