public static void maybePrintHelpOrVersion(CommandDefaultOptions commandOpts, String message) {
        if (isPrintHelpNeeded(commandOpts)) {
            printUsageAndExit(commandOpts.parser, message);
        }
        if (isPrintVersionNeeded(commandOpts)) {
            printVersionAndExit();
        }
    }
Check and print help message if there is no options or `--help` option
from command line, if `--version` is specified on the command line
print version information and exit.

@param commandOpts Acceptable options for a command
@param message     Message to display on successful check
server-common/src/main/java/org/apache/kafka/server/util/CommandLineUtils.java