Skip to content

Migration to argparse from optparse #5392

Closed
@Pierre-Sassoulas

Description

@Pierre-Sassoulas

Current problem

optparse is deprecated since python 3.2 and is not developed anymore. Also, the parsing are handled in a strange way with callback that created stupid bug that could probably be avoided by refactoring the code (#3581) We need to migrate to another CLI parser, the most logical being argparse or click, but confuse is also a possibility because it permits to have default option in a configuration file that could be one of the configuration we already handle and make option / configuration consistent. I'm open to other libraries too.

Desired solution

No more optparse used in the code, small and modular handling of CLI argument parsing, no more special case, or minimal.

Additional context

#5152 (comment)
#5259 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement ✨Improvement to a componentMaintenanceDiscussion or action around maintaining pylint or the dev workflow

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions