jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

Fix usage() for missing description on commands

Open jkosh44 opened this issue 5 years ago • 0 comments

Before this commit, if you supply a command to a JCommander object and you dont supply a description for the command, then when calling usage() you will see a line of the following format: "<command-name> null"

After this commit the string literal "null" will be omitted from the usage() call if you do not supply a description for the command.

Fixes #480

jkosh44 avatar Dec 12 '19 04:12 jkosh44