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 ...
This PEP proposes inclusion of the argparse [1] module in the Python standard library in Python 2.7 and 3.2. The argparse module is a command line parsing library which provides more functionality ...