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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]