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

   I have something cooking for c
   
   > 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..
   
   I have something cooking along these lines!  It actually helped me find 
places where I was using `solrUrl` instead of `solr-url` as the parameter name 
in the CLI!


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