You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by David Capwell <dc...@apple.com> on 2022/10/17 17:28:06 UTC

Re: [Discuss] CASSANDRA-17914: Modernize CQLSH's with argparse for CLI arts

As long as this doesn’t break the CLI interface, +1 from me; less dependencies are better and valuable work!

> On Sep 29, 2022, at 6:52 AM, Berenguer Blasi <be...@gmail.com> wrote:
> 
> +1
> 
> On 29/9/22 15:42, Derek Chen-Becker wrote:
>> +1 from me. It sounds like a good opportunity!
>> 
>> Cheers,
>> 
>> Derek
>> 
>> On Thu, Sep 29, 2022, 6:26 AM Brad <bschoeni@gmail.com <ma...@gmail.com>> wrote:
>> 
>> The Python standard library introduced argparse a decade ago in Python 2.7 to replace optparse as described in PEP-0389 <https://peps.python.org/pep-0389/> for command line argument parsing.  Optparse is no longer maintained, and has been deprecated since Python 3.2, although there are no plans to remove it from the std library.  
>> 
>> As part of modernizing CQLSH, I have proposed in CASSANDRA-17914 that we upgrade from optparse to argparse.  Argparse is part of the Python standard library and has been since 2011 so this upgrade involves no new library dependencies and should be self-contained and transparent.
>> 
>> The primary benefit is removing dependencies on deprecated classes and components.  Consensus seems to be that argparse has more meaningful help messages and is more intuitive to use.
>> 
>> 
>> Regards,
>> 
>> Brad Schoening