Proposal:
timeit currently uses getopt, and the __main__ code is a bit messy (see #137587). As such, I'm suggesting that we move to argparse instead. The --help contains the entire module's docstring which I believe could be truncated (for instance, it includes the classes and functions that are available in the module).
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
Proposal:
timeitcurrently usesgetopt, and the__main__code is a bit messy (see #137587). As such, I'm suggesting that we move toargparseinstead. The--helpcontains the entire module's docstring which I believe could be truncated (for instance, it includes the classes and functions that are available in the module).Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
argparseinstead ofgetoptintimeit#137955