Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16408

kafka-get-offsets / GetOffsetShell doesn't handle --version or --help

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.7.0
    • 3.8.0, 3.7.1
    • tools

    Description

      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:

      ./bin/kafka-get-offsets.sh --version
      Missing required argument "[broker-list]"
      ...
      --help                                   Print usage information.           
      ...   
      --version                                Display Kafka version.

      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.

      Attachments

        Issue Links

          Activity

            People

              javakillah Dmitry Werner
              gharris1727 Greg Harris
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: