You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Eric Pugh <ep...@opensourceconnections.com> on 2024/03/22 14:25:01 UTC
[commons-cli] How to handle deprecating options?
We use commons-cli in Apache Solr, and we’re currently trying to standardize our mash-mash of command line arguments. How do people handle deprecating an option in the Builder and introducing new ones? Is there any techniques/features of commons-cli that support this use case?
If you are curious, here is the current state of the work: https://github.com/apache/solr/pull/1768
Eric
_______________________
Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com <http://www.opensourceconnections.com/> | My Free/Busy <http://tinyurl.com/eric-cal>
Co-Author: Apache Solr Enterprise Search Server, 3rd Ed <https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw>
This e-mail and all contents, including attachments, is considered to be Company Confidential unless explicitly stated otherwise, regardless of whether attachments are marked as such.
Re: [commons-cli] How to handle deprecating options?
Posted by Gary Gregory <ga...@gmail.com>.
That sounds like a great feature to add to Commons CLI.
Gary
On Fri, Mar 22, 2024, 10:25 AM Eric Pugh <ep...@opensourceconnections.com>
wrote:
> We use commons-cli in Apache Solr, and we’re currently trying to
> standardize our mash-mash of command line arguments. How do people handle
> deprecating an option in the Builder and introducing new ones? Is there
> any techniques/features of commons-cli that support this use case?
>
> If you are curious, here is the current state of the work:
> https://github.com/apache/solr/pull/1768
>
> Eric
>
> _______________________
> Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 |
> http://www.opensourceconnections.com <
> http://www.opensourceconnections.com/> | My Free/Busy <
> http://tinyurl.com/eric-cal>
> Co-Author: Apache Solr Enterprise Search Server, 3rd Ed <
> https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw>
>
> This e-mail and all contents, including attachments, is considered to be
> Company Confidential unless explicitly stated otherwise, regardless of
> whether attachments are marked as such.
>
>