public static boolean isPrintVersionNeeded(CommandDefaultOptions commandOpts) {
        return commandOpts.options.has(commandOpts.versionOpt);
    }
Check if there is `--version` option from command line.

@param commandOpts Acceptable options for a command
@return true on matching the help check condition
server-common/src/main/java/org/apache/kafka/server/util/CommandLineUtils.java