jcommander
jcommander copied to clipboard
Usage takes command description from getMainParameterDescription - why?
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.
Yes, that's what I just added: @Parameters(commandDescription = "...")