hangc0276 opened a new pull request, #3227:
URL: https://github.com/apache/bookkeeper/pull/3227

   ### Motivation
   When run `bin/bookkeeper shell ledgermetadata -h` command, it throw the 
following exception.
   ```
   23:02:41,236 ERROR Error parsing command line arguments :
   org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -h
        at org.apache.commons.cli.Parser.processOption(Parser.java:363) 
~[commons-cli-commons-cli-1.2.jar:1.2]
        at org.apache.commons.cli.Parser.parse(Parser.java:199) 
~[commons-cli-commons-cli-1.2.jar:1.2]
        at org.apache.commons.cli.Parser.parse(Parser.java:85) 
~[commons-cli-commons-cli-1.2.jar:1.2]
        at 
org.apache.bookkeeper.bookie.BookieShell$MyCommand.runCmd(BookieShell.java:240) 
~[org.apache.bookkeeper-bookkeeper-server-4.16.0-SNAPSHOT.jar:4.16.0-SNAPSHOT]
        at org.apache.bookkeeper.bookie.BookieShell.run(BookieShell.java:2372) 
~[org.apache.bookkeeper-bookkeeper-server-4.16.0-SNAPSHOT.jar:4.16.0-SNAPSHOT]
        at org.apache.bookkeeper.bookie.BookieShell.main(BookieShell.java:2463) 
~[org.apache.bookkeeper-bookkeeper-server-4.16.0-SNAPSHOT.jar:4.16.0-SNAPSHOT]
   ledgermetadata: Print the metadata for a ledger, or optionally dump to a 
file.
   usage: ledgermetadata -ledgerid <ledgerid> [--dump-to-file
                         FILENAME|--restore-from-file FILENAME]
    -dumptofile <arg>        Dump metadata for ledger, to a file
    -l,--ledgerid <arg>      Ledger ID
    -restorefromfile <arg>   Restore metadata for ledger, from a file
   ```
   
   ### Changes
   Add `-h` and `--help` support.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to