mincong-h commented on issue #30: Docs: Replace OptionBuilder in usage page
URL: https://github.com/apache/commons-cli/pull/30#issuecomment-508922867
 
 
   Thanks for your review, @garydgregory ! I think you got confuse between 
[`Option.setArgName(String)`][1] and [`OptionBuilder.argName`][2]. The first 
one is used once `Option` object is created, while the second one is used 
during the `Option` construction inside builder. Actually, I wrote some tests 
to ensure the examples are correct, see 
https://github.com/mincong-h/java-examples/commit/98647be3eaef3ac0623fea83b783cbe5274b151b.
   
   [1]: 
https://commons.apache.org/proper/commons-cli/apidocs/org/apache/commons/cli/Option.html#setArgName(java.lang.String)
   [2]: 
https://commons.apache.org/proper/commons-cli/apidocs/org/apache/commons/cli/Option.Builder.html#argName(java.lang.String)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to