[ https://issues.apache.org/jira/browse/KAFKA-16408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Werner reassigned KAFKA-16408: ------------------------------------- Assignee: Dmitry Werner > kafka-get-offsets / GetOffsetShell doesn't handle --version or --help > --------------------------------------------------------------------- > > Key: KAFKA-16408 > URL: https://issues.apache.org/jira/browse/KAFKA-16408 > Project: Kafka > Issue Type: Bug > Components: tools > Affects Versions: 3.7.0 > Reporter: Greg Harris > Assignee: Dmitry Werner > Priority: Minor > Labels: newbie > > The kafka-get-offsets script was moved to Java for the 3.7.0 release. It now > inherits the CommandDefaultOptions, including "--help" and "–version". > However, it does not process these arguments like other commands, and instead > prints the following error: > {noformat} > ./bin/kafka-get-offsets.sh --version > Missing required argument "[broker-list]" > ... > --help Print usage information. > ... > --version Display Kafka version.{noformat} > It should follow the behavior of other commands, which is to print the > help/version without complaining about missing arguments. It should call > CommandLineUtils.maybePrintHelpOrVersion somewhere during argument parsing. -- This message was sent by Atlassian Jira (v8.20.10#820010)