hangc0276 commented on PR #3227:
URL: https://github.com/apache/bookkeeper/pull/3227#issuecomment-1107824583

   > How about adding a method `getOptionsWithHelp()` in `MyCommand`, that is
   > 
   > ```
   >         Options getOptionsWithHelp() {
   >             Options options = getOptions();
   >             options.addOption("h", "help", false, "show help");
   >             return options;
   >         }
   > ```
   > 
   > Then when running the command in the `MyCommand`, we use 
`getOptionsWithHelp` to parse the options.
   > 
   > So the change will be only in the MyCommand and we don't need to change 
other place?
   
   Good idea, I have updated the code.


-- 
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