( )⚙ D1474 run-tests: convert to argparse

This is an archive of the discontinued Mercurial Phabricator instance.

run-tests: convert to argparse
ClosedPublic

Authored by indygreg on Nov 21 2017, 2:53 AM.

Details

Summary

optparse has been deprecated since Python 3.2. Best to get on the new
boat before the old one sinks.

It looks like argparse formats its usage string differently than
optparse. Meh.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Nov 21 2017, 2:53 AM
lothiraldan accepted this revision.Nov 22 2017, 3:14 AM
lothiraldan added a subscriber: lothiraldan.

LGTM to me and seems to works fine on Linux.

yuja accepted this revision.Dec 1 2017, 9:26 PM
This revision is now accepted and ready to land.Dec 1 2017, 9:26 PM
This revision was automatically updated to reflect the committed changes.