jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

Usage takes command description from getMainParameterDescription - why?

Open vovencij opened this issue 16 years ago • 1 comments

Why usage() takes desciption of a command from getMainParameterDescription? If the command doesn't have any main parameters then it shows null and do I really have to add synthetic main parameter to have a description in usage()?

I find if would be reasonable to get Description from class-level annotation rather than from main parameter.

vovencij avatar Aug 18 '10 14:08 vovencij

Yes, that's what I just added: @Parameters(commandDescription = "...")

cbeust avatar Aug 26 '10 02:08 cbeust