janhoy commented on PR #1768:
URL: https://github.com/apache/solr/pull/1768#issuecomment-2016244199

   I have been thinking about adding a deprecation-feature to commons-cli, such 
that you could construct an Option: 
   ```java
   Option o = 
Option.builder("n").longOpt("new-long").deprecatedOpt("oldShort").deprecatedLongOpt("oldLong")
   ...
   String myVal = cli.getOptionValue("n")
   ```
   
   It would work so that if `-n` or `--new-long` are not provided, it will fall 
back to checking `-oldShort` and `--oldLong`, and print a deprecation warning 
if using deprecated options. Perhaps we could help implement it and use the new 
version before the 10.0 release..


-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to