[SERVER-42465] Update python code from optparse to argparse Created: 28/Jul/19  Updated: 28/Aug/23  Resolved: 28/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Development Platform
Operating System: ALL
Participants:

 Description   

We currently have 19 different files using optparse:

buildscripts/aggregate_tracefiles.py
buildscripts/aws_ec2.py
buildscripts/clang_format.py
buildscripts/collect_resource_info.py
buildscripts/combine_reports.py
buildscripts/errorcodes.py
buildscripts/eslint.py
buildscripts/hang_analyzer.py
buildscripts/make_archive.py
buildscripts/mobile/benchrun_embedded_setup_android.py
buildscripts/mongosymb.py
buildscripts/promote_silent_failures.py
buildscripts/remote_operations.py
buildscripts/resmokelib/parser.py
buildscripts/resmokelib/suitesconfig.py
buildscripts/setup_multiversion_mongodb.py
buildscripts/yaml_key_value.py
pytests/powertest.py
src/mongo/util/generate_icu_init_cpp.py

optparse has been deprecated since python 2.7 (almost a decade) and the pathway to upgrade is well-defined.


Generated at Thu Feb 08 05:00:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.