Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
9.7
-
None
Description
Commons CLI now supports deprecated options, and when those options are used, they print a log to the user warning them. Unfortunately, by default, the logging is done to stdout. Tools that use the SolrCLI and parse the output will be broken by this change since they generally always read from stdout. If the logging was done to stderr, there would be no problem since the tools would not read the deprecation logs with the CLI output.
Either
- Commons CLI should log deprecations to stderr by default
- Commons CLI should make Option.toDeprecatedString() public, so that we can more easily make our own DeprecationHandler that merely prints the same thing to stderr. As it is, we have to copy the whole method ourselves since it is package private.
Attachments
Issue Links
- is related to
-
SOLR-16757 Umbrella Ticket for Revamping Solr CLI's for the Future
- Open
- links to