optparse provides an object-oriented interface. Even if it has less features than argparse, it is more stable and has less bugs. It should be the preferable Python module for CLI. Linked PRs gh-126180 ...
Python 3.13 deprecates optparse and getopt modules, which we have a few uses of. We should migrate this.